本教程已通过 Node v16.2.0、npmv7.18.1、@angular/cliv12.0.5、@angular/corev12.0.5、webpack-bundle-analyzerv4.4.2 和source-map-explorerv2.5.2 验证。 使用webpack-bundle-analyzer webpack-bundle-analyzer是一个分析 webpack stats JSON 文件的工具,Angular CLI 可以在构建应用程序时自动生成该文件。
Learn about webpack-bundle-analyzer and source-map-explorer and how they can be used to analyze the bundle size and composition of an Angular 2+ app’s pr…
EN我有一个Angular 12应用程序,包的大小似乎很大,这是意想不到的(应用程序中只有几个组件)。我尝试...
The bundle is an angular-cli application, a set of files ~5.2Mb total, minified js with links to .map files in the same directory. Expected behavior Should parse bundle and generate report fast, as in previous versions Environment OS: Windows 10 1809 Node 12.13.1 source-map-explorer 2.2....