format config

This commit is contained in:
MaysWind
2021-02-28 20:26:28 +08:00
parent b09c157fa8
commit 7f47ffe6c2
+2 -2
View File
@@ -21,7 +21,7 @@ module.exports = {
}, },
publicPath: '', publicPath: '',
productionSourceMap: false, productionSourceMap: false,
configureWebpack:{ configureWebpack: {
plugins: [ plugins: [
new MomentLocalesPlugin() new MomentLocalesPlugin()
] ]
@@ -37,7 +37,7 @@ module.exports = {
minChunks: 2 minChunks: 2
}, },
'vendors-bundle': { 'vendors-bundle': {
name: (module, chunks, cacheGroupKey) => { name: (module, chunks) => {
const allChunksNames = chunks.map((item) => item.name).join('-'); const allChunksNames = chunks.map((item) => item.name).join('-');
return `vendors-${allChunksNames}-bundle`; return `vendors-${allChunksNames}-bundle`;
}, },