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 496ebef commit 1d0a308Copy full SHA for 1d0a308
1 file changed
scripts/web-server-with-restart.sh
@@ -9,11 +9,15 @@ RESTART_DELAY=3
9
10
echo "🚀 Starting webpack-dev-server with auto-restart (max restarts: $MAX_RESTARTS)"
11
12
+run_wds () {
13
+ node --expose-gc "$(npm root)/webpack-dev-server/bin/webpack-dev-server.js" --open --config config/webpack/webpack.dev.ts
14
+}
15
+
16
while [ $RESTART_COUNT -lt $MAX_RESTARTS ]; do
17
echo "📊 Attempt #$((RESTART_COUNT + 1)) - Starting webpack-dev-server..."
18
19
# Run webpack-dev-server with memory monitoring
- NODE_OPTIONS='--expose-gc' webpack-dev-server --open --config config/webpack/webpack.dev.ts
20
+ run_wds
21
22
# Capture exit code
23
EXIT_CODE=$?
0 commit comments