ci: start tracking CSS payload sizes for angular.io (#42584)
Previously, we only tracked the sizes of the eagerly loaded JS bundles. However, the CSS styles (which also have a non-negligible size) must also be downloaded and parsed by the browser, thus affecting the initial rendering time. This commit starts tracking the CSS styles payload sizes. (Originally discussed in https://github.com/angular/angular/pull/42584#discussion_r653787961) PR Close #42584
This commit is contained in:
committed by
Dylan Hunn
parent
983c540191
commit
12644486f4
@@ -12,4 +12,4 @@ source ../scripts/ci/payload-size.sh
|
||||
# Provide node_modules from aio
|
||||
NODE_MODULES_BIN=$PROJECT_ROOT/aio/node_modules/.bin/
|
||||
|
||||
trackPayloadSize "$target" "dist/*.js" true "$PROJECT_ROOT/goldens/size-tracking/aio-payloads.json"
|
||||
trackPayloadSize "$target" "dist/*.css dist/*.js" true "$PROJECT_ROOT/goldens/size-tracking/aio-payloads.json"
|
||||
|
||||
Reference in New Issue
Block a user