角度生产构建块大小问题

时间:2020-09-01 02:55:29

标签: angular build production angular-cli-v9

在这里,我已将项目从Angle 5转换为9,但是es2015的一些块大小比angular 5大了5倍。

build命令:ng build --prod

我在Angular.json文件中所做的

配置:

  "production": {
              "budgets": [
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kb"
                }
              ],
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": true,
              "aot": true,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true,
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ]
            }

我想念的东西吗?

0 个答案:

没有答案