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 | 1ecd77cf83049792d0d6380f0f65f9400e78c403 (patch) | |
tree | e5264b55769cceac3ec53668ba8c044efbe61c15 /FrontEnd/webpack.config.dev.js | |
parent | a69ee3f38432af653ed96efd96f5f7682b3ebf24 (diff) | |
download | timeline-1ecd77cf83049792d0d6380f0f65f9400e78c403.tar.gz timeline-1ecd77cf83049792d0d6380f0f65f9400e78c403.tar.bz2 timeline-1ecd77cf83049792d0d6380f0f65f9400e78c403.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();
|