diff --git a/scripts/server-frontend-dev.js b/scripts/server-frontend-dev.js index f4b15af..e7dc5a1 100644 --- a/scripts/server-frontend-dev.js +++ b/scripts/server-frontend-dev.js @@ -3,7 +3,6 @@ import WebpackDevServer from "webpack-dev-server"; import config from "../config/webpack.dev.js"; const devServerConfig = { - hot: true, proxy: { // proxies for the backend "/api": "http://localhost:3000", @@ -15,12 +14,14 @@ const devServerConfig = { }, }; -export default function startFrontendDevServer(port, resolve) { - new WebpackDevServer(webpack(config), devServerConfig).start(port, (err) => { +export default async function startFrontendDevServer(port, resolve) { + resolve(1); + await new WebpackDevServer(webpack(config), devServerConfig).start(port, (err) => { if (err) { console.log(err); } - console.log("Listening on port " + port); }); - resolve(1); + console.log( + "\n\n-------Successfully started dev server on http://localhost:8080-----------\n\n" + ); } diff --git a/src/index.html b/src/index.html index 0bf458b..9828e95 100644 --- a/src/index.html +++ b/src/index.html @@ -46,10 +46,7 @@ -