Change the path of the chunk-vendors.js in Vue.js CLI (webpack config) Change the path of the chunk-vendors.js in Vue.js CLI (webpack config) vue.js vue.js

Change the path of the chunk-vendors.js in Vue.js CLI (webpack config)


You can define an explicit chunkFilename; e.g:

module.exports = {  outputDir: 'my/custom/build/path/',  configureWebpack: (config) => {      config.output.filename = '[name].[hash:8].js';      config.output.chunkFilename = '[name].[hash:8].js';  }}

Which should generate something like:

my/custom/build/path/app.216ad62b.jsmy/custom/build/path/app.216ad62b.js.mapmy/custom/build/path/chunk-vendors.6f85144f.jsmy/custom/build/path/chunk-vendors.6f85144f.js.map

Hope this helps :)