How to make Wrangler kill Webpack dev server? #5145
Unanswered
StrandedKitty
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm starting Wrangler with
wrangler pages dev --port 8776 --compatibility-flags="nodejs_compat" -- npm start, andnpm startis an alias forwebpack serve --config ./webpack.config.js --mode=development, which starts a webpack dev server.The problem with this setup is that Webpack still continues to run and occupies a port even when I kill Wrangler (Ctrl+C or by pressing
x) or when Wrangler crashes. This is really annoying, and I have no idea how to free the port besides restarting the machine. Is there a way to automatically kill Webpack?Beta Was this translation helpful? Give feedback.
All reactions