mirror of
https://gitee.com/openharmony/developtools_ace_js2bundle
synced 2024-11-27 01:20:27 +00:00
commit
df36c49fe5
@ -345,15 +345,14 @@ module.exports = (env) => {
|
|||||||
cacheGroups: {
|
cacheGroups: {
|
||||||
vendors: {
|
vendors: {
|
||||||
test: /[\\/]node_modules[\\/]/,
|
test: /[\\/]node_modules[\\/]/,
|
||||||
priority: -10,
|
priority: 20,
|
||||||
name: "vendors",
|
name: "vendors",
|
||||||
},
|
},
|
||||||
commons: {
|
commons: {
|
||||||
test: /\.js|css|hml$/,
|
test: /\.js|css|hml$/,
|
||||||
name: 'commons',
|
name: 'commons',
|
||||||
priority: -20,
|
priority: 10,
|
||||||
minChunks: 2,
|
minChunks: 2,
|
||||||
reuseExistingChunk: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user