12644486f4
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
16 lines
417 B
Bash
Executable File
16 lines
417 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu -o pipefail
|
|
|
|
readonly thisDir=$(cd $(dirname $0); pwd)
|
|
readonly parentDir=$(dirname $thisDir)
|
|
readonly target=${1:-aio}
|
|
|
|
# Track payload size functions
|
|
source ../scripts/ci/payload-size.sh
|
|
|
|
# Provide node_modules from aio
|
|
NODE_MODULES_BIN=$PROJECT_ROOT/aio/node_modules/.bin/
|
|
|
|
trackPayloadSize "$target" "dist/*.css dist/*.js" true "$PROJECT_ROOT/goldens/size-tracking/aio-payloads.json"
|