debug:清除打包缓存

This commit is contained in:
磷叶 2024-10-16 11:04:44 +08:00
parent 1e5630d88f
commit 11d027166c

View File

@ -91,6 +91,10 @@ module.exports = {
.end()
config.when(process.env.NODE_ENV !== 'development', config => {
// 解决vue打包缓存问题
config.output.filename('js/[name].[contenthash].js').end();
config.output.chunkFilename('js/[name].[contenthash].js').end();
config
.plugin('ScriptExtHtmlWebpackPlugin')
.after('html')