[Vuejs]-Laravel mix – change output dir of numbered js files

0👍

You can change the output location of these files by adding this to your mix config file

mix.webpackConfig({
  output: {
    chunkFilename: "js/[name].js",
  }
});

If you want to add a hash to the filename for caching purposes, you can adjust chunkFilename like so:

chunkFilename: "js/[name].[chunkhash:8].js"

Leave a comment