We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65c241a commit 2b99612Copy full SHA for 2b99612
1 file changed
scripts/start-dev-with-auto-restart.sh
@@ -4,15 +4,15 @@
4
# This script monitors for heap out of memory errors and automatically restarts
5
# Usage: ./start-dev-with-auto-restart.sh [webpack-dev-server arguments]
6
7
-WDS_ARGS="$@"
+WDS_ARGS=("$@")
8
MAX_RESTARTS=10
9
RESTART_COUNT=0
10
RESTART_DELAY=1
11
12
echo "🚀 Starting webpack-dev-server with auto-restart (max restarts: $MAX_RESTARTS)"
13
14
run_wds () {
15
- node --expose-gc ./node_modules/.bin/webpack-dev-server $1 $WDS_ARGS --config config/webpack/webpack.dev.ts
+ node --expose-gc ./node_modules/.bin/webpack-dev-server "$1" "${WDS_ARGS[@]}" --config config/webpack/webpack.dev.ts
16
}
17
18
while [ $RESTART_COUNT -lt $MAX_RESTARTS ]; do
0 commit comments