|
|
|
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: {
|
|
|
|
'@JS': path.resolve(__dirname, 'resources/js'),
|
|
|
|
'@Global': path.resolve(__dirname, 'resources/js/Global'),
|
|
|
|
// '@Modules': path.resolve(__dirname, 'resources/js/Modules'),
|
|
|
|
// -----------------------------Modules--------------------------------
|
|
|
|
'@User': path.resolve(__dirname, 'resources/js/User'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
output: {
|
|
|
|
chunkFilename: 'js/vue/chunks/[name].[chunkhash].js',
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
// mix.js('resources/js/Modules/Website/app.js', 'public/Modules/Website/js')
|
|
|
|
// .js('resources/js/Home/app.js', 'public/Home/js');
|
|
|
|
// .js('resources/js/Authentication/app.js', 'public/Authentication/js');
|
|
|
|
|
|
|
|
mix.js('resources/js/Authentication/app.js', 'public/js/vue/Authentication')
|
|
|
|
.js('resources/js/Home/app.js', 'public/js/vue/Home')
|
|
|
|
.js('resources/js/User/app.js', 'public/js/vue/User');
|
|
|
|
|
|
|
|
|
|
|
|
// require('./modules/wm-core/webpack.mix');
|
|
|
|
require('./modules/wm-common/webpack.mix');
|
|
|
|
|
|
|
|
require('./modules/wm-crm/webpack.mix');
|
|
|
|
// require('./modules/wm-store/webpack.mix');
|
|
|
|
|
|
|
|
// require('./modules/wm-reservation/webpack.mix');
|
|
|
|
|
|
|
|
mix.version();
|