5

angularプロジェクトをビルドすると、

main-es5.jsおよびmain-es2015.js 両方のファイル。Chrome ブラウザーのみをサポートしたいのですが、古い js ファイルのビルドをオフにするにはどうすればよいですか。ビルドで最小数のファイルが必要です。

8 にアップグレードしてから、私のビルドも 2 回実行されます

ノート

ビルド時間が大幅に増加し、予算で警告 WARNING が発生しました。初期の最大値を超えました。

これは私のAngular.jsonファイルです

      "optimization": true,
      "outputHashing": "none",
      "sourceMap": true,
      "extractCss": false,
      "namedChunks": false,
      "showCircularDependencies": false,
      "aot": true,
      "extractLicenses": false,
      "statsJson": false,
      "progress": true,
      "vendorChunk": false,
      "buildOptimizer": true,

ブラウザリストファイル

# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# You can see what browsers were selected by your queries by running:
#   npx browserslist

> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.

編集: Githubで機能リクエストが発生しました

4

2 に答える 2