1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 20:55:49 +00:00

Bump webpack to v5.72.1 and tweak stats scripts (#15516)

This commit is contained in:
Steve Repsher
2023-02-21 03:50:28 -05:00
committed by GitHub
parent 77f7a5647d
commit a469a92601
4 changed files with 53 additions and 47 deletions

View File

@@ -6,6 +6,9 @@ set -e
cd "$(dirname "$0")/.."
STATS=1 NODE_ENV=production ../node_modules/.bin/webpack --profile --json > compilation-stats.json
npx webpack-bundle-analyzer compilation-stats.json dist/frontend_latest
rm compilation-stats.json
export STATS=1
statsfile="compilation-stats-demo.json"
./node_modules/.bin/webpack-cli --profile --node-env=production --json=$statsfile
npx webpack-bundle-analyzer $statsfile dist/frontend_latest
rm -f $statsfile