dot*_*pro 5 angular-cli angular angular8
当我构建我的 angular 项目时,我看到
main-es5.js和main-es2015.js 两个文件。我只想支持 Chrome 浏览器如何关闭构建旧的 js 文件我希望 Build.js 上的文件数量最少。
自从我升级到 8 以来,我的 Build 也运行了两次
笔记
构建时间显着增加,我在预算中收到警告警告,初始超出最大值。
这是我的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,
Run Code Online (Sandbox Code Playgroud)
浏览器列表文件
# 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'.
Run Code Online (Sandbox Code Playgroud)
编辑:在Github上提出功能请求
**browserlist**
last 2 Chrome versions
Run Code Online (Sandbox Code Playgroud)
https://browserl.ist/?q=last+2+Chrome+versions
创建一个最小的仅 chrome 的 ES2015+ 构建
| 归档时间: |
|
| 查看次数: |
1747 次 |
| 最近记录: |