I was having the same problem with vuely xd.
For now what I have done this:
mix.autoload({
'jquery': ['$', 'window.jQuery', 'jQuery'],
})
mix.webpackConfig({
resolve: {
alias: {
'Api': path.resolve(__dirname, 'resources/js/api/'),
'Components': path.resolve(__dirname, 'resources/js/components/'),
'Constants': path.resolve(__dirname, 'resources/js/constants/'),
'Container': path.resolve(__dirname, 'resources/js/container/'),
'Views': path.resolve(__dirname, 'resources/js/views/'),
'Helpers': path.resolve(__dirname, 'resources/js/helpers/'),
'Themes': path.resolve(__dirname, 'resources/js/themes/')
}
},
output: {
chunkFilename: mix.inProduction() ? "js/chunks/[name].[chunkhash].js" : "js/chunks/[name].js",
}
});
mix.options({
extractVueStyles: true
});
mix.js('resources/js/main.js', 'public/js');
mix.sass('resources/js/assets/scss/_style.scss', 'public/css/style.css');
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…