Files
cssd-back/webpack.mix.js
T
2019-08-21 13:59:18 +04:30

31 lines
996 B
JavaScript
Vendored

const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.webpackConfig({
resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'@': path.resolve(__dirname, 'resources/js/vue/Admin'),
'@ShowTestResult': path.resolve(__dirname, 'resources/js/vue/ShowTestResult'),
},
},
output: {
chunkFilename: 'js/vue/chunks/[name].[chunkhash].js',
}
});
mix.js('resources/js/vue/Admin/main.js', 'public/js/vue/admin/app.js');
// mix.js('resources/js/vue/showTestResult/main.js', 'public/js/vue/showTestResult/app.js');
mix.version();