!493 fix webpack 热加载失效问题

Merge pull request !493 from Bo Jiang/master
This commit is contained in:
openharmony_ci 2023-01-04 04:06:57 +00:00 committed by Gitee
commit df36c49fe5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -345,15 +345,14 @@ module.exports = (env) => {
cacheGroups: {
vendors: {
test: /[\\/]node_modules[\\/]/,
priority: -10,
priority: 20,
name: "vendors",
},
commons: {
test: /\.js|css|hml$/,
name: 'commons',
priority: -20,
priority: 10,
minChunks: 2,
reuseExistingChunk: true
}
}
},