feat(cli): add webpack maxAssetSize config

This commit is contained in:
chenjiahan 2020-03-08 12:34:25 +08:00
parent 3b5b01897f
commit ecce907de7

View File

@ -14,6 +14,10 @@ export function getSitePrdConfig() {
{ {
mode: 'production', mode: 'production',
stats: 'none', stats: 'none',
performance: {
maxAssetSize: 5 * 1024 * 1024,
maxEntrypointSize: 5 * 1024 * 1024,
},
output: { output: {
publicPath, publicPath,
path: outputDir, path: outputDir,