diff options
author | crupest <crupest@outlook.com> | 2020-11-03 22:56:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 22:56:16 +0800 |
commit | f3503b399ff7b65f363beca313c8a0c336884bec (patch) | |
tree | 8bd10736c4cd51ff13b101b90e77d1d09ab4cdfa /FrontEnd/webpack.config.dev.js | |
parent | 7acaffc977bc9ad3ba43c7808c1ea973a8144767 (diff) | |
parent | 82b366ea89342593ec1bcde3441c0f2f06eb4649 (diff) | |
download | timeline-f3503b399ff7b65f363beca313c8a0c336884bec.tar.gz timeline-f3503b399ff7b65f363beca313c8a0c336884bec.tar.bz2 timeline-f3503b399ff7b65f363beca313c8a0c336884bec.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.js | 6 |
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();
|