博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[Angular 8] Calculate and Measure Performance budgets with the Angular CLI
阅读量:4983 次
发布时间:2019-06-12

本文共 1261 字,大约阅读时间需要 4 分钟。

Measuring is extremely important, without numbers we don’t know about potential problems and we don’t have a base we can improve upon.  are a way to impose limits on metrics that may affect our app’s performance. In this lesson we’ll learn how to configure the Angular CLI to configure performance budgets, to monitor them and to alert us when we violate them.

 

In angular.json:

"configurations": {            "production": {              "fileReplacements": [                {                  "replace": "src/environments/environment.ts",                  "with": "src/environments/environment.prod.ts"                }              ],              "optimization": true,              "outputHashing": "all",              "sourceMap": false,              "extractCss": true,              "namedChunks": false,              "aot": true,              "extractLicenses": true,              "vendorChunk": false,              "buildOptimizer": true,              "budgets": [                {                  "type": "bundle",                  "name": "main",                  "maximumWarning": "350kb",                  "maximumError": "500kb"                }              ]            }          }        },

 

转载于:https://www.cnblogs.com/Answer1215/p/11430827.html

你可能感兴趣的文章
【31】126. Word Ladder II
查看>>
Java反射基础
查看>>
List和Tuple的中的method对比
查看>>
关于ThreadLocal和一般的线程同步的详细解释
查看>>
HDFS源码分析心跳汇报之数据块汇报
查看>>
17Web服务器端控件
查看>>
es6-module
查看>>
(一)MapReduce篇之InputFormat,InputSplit,RecordReader(转)
查看>>
HTTP之Response状态码
查看>>
Mac如何使用git以及github
查看>>
mysql如何利用Navicat 导出和导入数据库
查看>>
Java正则表达式(一)、抓取网页email地址实例
查看>>
网络_01 基本配置
查看>>
【原创】关于oracle11G空表无法导出问题的解决方法
查看>>
16进制的简单运算
查看>>
速读《Javascript模式》(一)(简介、var的变量提升以及es6新规范的let)
查看>>
DM8168集成图像算法
查看>>
GDI编程小结
查看>>
nalply/crtmpserver
查看>>
jquery 遍历节点
查看>>