Browser cache problems with webpack chunks and vue.js components
In webpack.mix.js
change it to this:
mix.config.webpackConfig.output = { chunkFilename: 'scripts/[name].[chunkhash].js', publicPath: '/',};
Refer to this article for more information.
Configure webpack.mix.js to version your files
let version = 0;mix.config.webpackConfig.output = { chunkFilename: 'v/' + version + '/scripts/[name].js', publicPath: '/',};mix.js('resources/js/app.js', 'public/v/'+version+'/js') .sass('resources/sass/app.scss', 'public/v/'+version+'/css');