File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,18 +11,18 @@ if [[ "${1:-}" = "--md-simple" ]]; then
1111fi
1212
1313SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
14- DIST_DIR =" ${SCRIPT_DIR} /../dist /assets"
14+ DEMO_ASSETS_DIR =" ${SCRIPT_DIR} /../build/demo/dev/public /assets"
1515
16- if [[ ! -d " $DIST_DIR " ]]; then
17- echo " Error: dist/ assets directory not found. Run 'npm run build -w packages/ demo' first ." >&2
16+ if [[ ! -d " $DEMO_ASSETS_DIR " ]]; then
17+ echo " Error: demo assets directory not found. Run 'npm run demo:build ." >&2
1818 exit 1
1919fi
2020
2121# Collect lib chunks with their size in KB
2222declare -a names=()
2323declare -a sizes=()
2424
25- for file in " $DIST_DIR " /lib-* .js; do
25+ for file in " $DEMO_ASSETS_DIR " /lib-* .js; do
2626 [[ -f " $file " ]] || continue
2727 filename=$( basename " $file " )
2828 # Extract dependency name: lib-<name>-<hash>.js -> <name>
You can’t perform that action at this time.
0 commit comments