aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/webpack.config.dev.js
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/webpack.config.dev.js')
-rw-r--r--FrontEnd/webpack.config.dev.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/FrontEnd/webpack.config.dev.js b/FrontEnd/webpack.config.dev.js
index 937ab3fb..75665431 100644
--- a/FrontEnd/webpack.config.dev.js
+++ b/FrontEnd/webpack.config.dev.js
@@ -6,6 +6,8 @@ const config = require("./webpack.common");
config.mode("development");
+config.target('web'); // Remove this after https://github.com/webpack/webpack-dev-server/issues/2758 is fixed.
+
config.module
.rule("ts")
.use("babel")
@@ -42,12 +44,10 @@ config.resolve.set("fallback", {
config.devServer
.contentBase(path.resolve(__dirname, "public/"))
- .host("0.0.0.0")
.port(3000)
.historyApiFallback(true)
- .hotOnly(true);
+ .hot(true);
-config.plugin("hot").use(webpack.HotModuleReplacementPlugin);
config.plugin("react-refresh").use(new ReactRefreshWebpackPlugin());
module.exports = config.toConfig();