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'), '@show': path.resolve(__dirname, 'resources/js/show'), }, }, output: { chunkFilename: 'js/vue/chunks/[name].[chunkhash].js', } }); mix.js('resources/js/vue/main.js', 'public/js/vue/app.js') .js('resources/js/show/main.js', 'public/js/show/app.js'); mix.version();