修改包大小提示

This commit is contained in:
lyswhut
2022-05-22 01:50:34 +08:00
parent 2250cac7f9
commit 47a8da49ca
9 changed files with 367 additions and 336 deletions
-3
View File
@@ -25,9 +25,6 @@ module.exports = {
},
],
},
performance: {
maxEntrypointSize: 300000,
},
plugins: [
new ESLintPlugin(),
],
+4
View File
@@ -19,4 +19,8 @@ module.exports = merge(baseConfig, {
__userApi: `"${path.join(__dirname, '../../src/main/modules/userApi').replace(/\\/g, '\\\\')}"`,
}),
],
performance: {
maxEntrypointSize: 1024 * 1024 * 50,
maxAssetSize: 1024 * 1024 * 30,
},
})
+4
View File
@@ -40,6 +40,10 @@ module.exports = merge(baseConfig, {
},
}),
],
performance: {
maxEntrypointSize: 1024 * 1024 * 10,
maxAssetSize: 1024 * 1024 * 20,
},
optimization: {
minimize: false,
},