浏览代码

build: avoid warning if library is < 750KB

If we go beyond this limit, we'll have to put it on a diet.
tags/v0.0.2
Saúl Ibarra Corretgé 6 年前
父节点
当前提交
4010d2a301
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      webpack.config.js

+ 4
- 0
webpack.config.js 查看文件

@@ -61,6 +61,10 @@ const config = {
61 61
         filename: `[name]${minimize ? '.min' : ''}.js`,
62 62
         path: process.cwd(),
63 63
         sourceMapFilename: `[name].${minimize ? 'min' : 'js'}.map`
64
+    },
65
+    performance: {
66
+        maxAssetSize: 750000,
67
+        maxEntrypointSize: 750000
64 68
     }
65 69
 };
66 70
 

正在加载...
取消
保存