Suppose I compile certain JS assets into dist/static/js:
output: {
path: config.build.assetsRoot,
filename: utils.assetsPath('js/[name].[chunkhash].js'),
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js'),
},
Before executing npm run build
, I manually create a file in the /dist/, /static/, and /js/ directories.
But after running npm run build
, this specific file gets deleted. The files created within the /static/ and /js/ directories disappear as well. How can I prevent this from occurring?
The structure is based on Vue.js/Webpack boilerplate available at: https://github.com/vuejs-templates/webpack