Move devserver to different port

Signed-off-by: DmitriyNoa <dmytro.zharkov@gmail.com>
This commit is contained in:
DmitriyNoa committed 2022-04-08 11:44:41 +02:00
1 parent 3b7b018084
commit 90ddf21903
2 files changed
+2 -1

No files matched your search

@@ -74,7 +74,7 @@ const handleStaticFileInDevelopment =
} }
proxy.web(req, res, { proxy.web(req, res, {
target: "http://127.0.0.1:8080", target: "http://127.0.0.1:9191",
}); });
return { proxy }; return { proxy };
+1
View File
@@ -26,6 +26,7 @@ function createDevServer(): WebpackDevServer {
}, },
allowedHosts: "all", allowedHosts: "all",
host: "localhost", host: "localhost",
port: 9191,
static: buildDir, // aka `devServer.contentBase` in webpack@4 static: buildDir, // aka `devServer.contentBase` in webpack@4
hot: "only", // use HMR only without errors hot: "only", // use HMR only without errors
liveReload: false, liveReload: false,