aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/webpack.config.dev.js
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-03 22:56:16 +0800
committerGitHub <noreply@github.com>2020-11-03 22:56:16 +0800
commitfc3c2de7b4f431f0edcabb5ead2a2e1aa79d665a (patch)
tree92a0f98cde935b5408e5958f8070d1021eb1ef3c /FrontEnd/webpack.config.dev.js
parentf3236eaf28c878db2b45377ac8805b014960c662 (diff)
parentd308724286d7d34f71490999b656160e439bfc9f (diff)
downloadtimeline-fc3c2de7b4f431f0edcabb5ead2a2e1aa79d665a.tar.gz
timeline-fc3c2de7b4f431f0edcabb5ead2a2e1aa79d665a.tar.bz2
timeline-fc3c2de7b4f431f0edcabb5ead2a2e1aa79d665a.zip
Merge pull request #162 from crupest/front
Add timeline title to front end.
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();