From 1ecd77cf83049792d0d6380f0f65f9400e78c403 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 3 Nov 2020 22:17:20 +0800 Subject: feat: Add title to timeline. --- FrontEnd/webpack.config.dev.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'FrontEnd/webpack.config.dev.js') 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(); -- cgit v1.2.3