diff options
author | crupest <crupest@outlook.com> | 2020-11-03 22:17:20 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-03 22:17:20 +0800 |
commit | af8c7de13bcaa0bf1b413966c914974eca079b4d (patch) | |
tree | 3765164b8afad8cc2594d3111d5f82d3afe88a74 /FrontEnd/webpack.config.dev.js | |
parent | c01964d51c2f2f7ee8f07e857fd4a7292b048905 (diff) | |
download | timeline-af8c7de13bcaa0bf1b413966c914974eca079b4d.tar.gz timeline-af8c7de13bcaa0bf1b413966c914974eca079b4d.tar.bz2 timeline-af8c7de13bcaa0bf1b413966c914974eca079b4d.zip |
feat: Add title to timeline.
Diffstat (limited to 'FrontEnd/webpack.config.dev.js')
-rw-r--r-- | FrontEnd/webpack.config.dev.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/FrontEnd/webpack.config.dev.js b/FrontEnd/webpack.config.dev.js index 2e2959a3..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")
@@ -44,9 +46,8 @@ config.devServer .contentBase(path.resolve(__dirname, "public/"))
.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();
|