debug:清除打包缓存
This commit is contained in:
parent
1e5630d88f
commit
11d027166c
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user