Use stop, not close in webpack-dev-server 5

Signed-off-by: Tomasz Szuba <tszuba@box.com>
This commit is contained in:
Tomasz Szuba
2024-03-15 13:54:11 +01:00
parent 4946f03ed3
commit 7ead87dec0
+1 -1
View File
@@ -286,7 +286,7 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
const waitForExit = async () => {
for (const signal of ['SIGINT', 'SIGTERM'] as const) {
process.on(signal, () => {
webpackServer?.close();
webpackServer?.stop();
viteServer?.close();
// exit instead of resolve. The process is shutting down and resolving a promise here logs an error
process.exit();