Skip to content

Commit 2b99612

Browse files
committed
feat: webpack-dev-server GC plugin & auto-restat on crash - prettier / lint
1 parent 65c241a commit 2b99612

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/start-dev-with-auto-restart.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
# This script monitors for heap out of memory errors and automatically restarts
55
# Usage: ./start-dev-with-auto-restart.sh [webpack-dev-server arguments]
66

7-
WDS_ARGS="$@"
7+
WDS_ARGS=("$@")
88
MAX_RESTARTS=10
99
RESTART_COUNT=0
1010
RESTART_DELAY=1
1111

1212
echo "🚀 Starting webpack-dev-server with auto-restart (max restarts: $MAX_RESTARTS)"
1313

1414
run_wds () {
15-
node --expose-gc ./node_modules/.bin/webpack-dev-server $1 $WDS_ARGS --config config/webpack/webpack.dev.ts
15+
node --expose-gc ./node_modules/.bin/webpack-dev-server "$1" "${WDS_ARGS[@]}" --config config/webpack/webpack.dev.ts
1616
}
1717

1818
while [ $RESTART_COUNT -lt $MAX_RESTARTS ]; do

0 commit comments

Comments
 (0)