12 lines
274 B
Bash
Executable File
12 lines
274 B
Bash
Executable File
#!/bin/sh
|
|
# Analyze stats
|
|
|
|
# Stop on errors
|
|
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
|