diff options
author | Vitaly Takmazov | 2023-03-21 03:42:38 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-03-21 03:42:38 +0300 |
commit | 6aa37e1a76db07fb8f12ec0646b0840423391d74 (patch) | |
tree | 9d15b8edc1575bb923f53e9599abb08c596f4d21 | |
parent | c1e0af60f3db17b0fc97fbae1aebb5320dd22d27 (diff) |
webpack: overlay configuration
-rw-r--r-- | vnext/server/webpack.config.js | 4 | ||||
-rw-r--r-- | webpack.config.js | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/vnext/server/webpack.config.js b/vnext/server/webpack.config.js index d898c796..61f00d4d 100644 --- a/vnext/server/webpack.config.js +++ b/vnext/server/webpack.config.js @@ -51,7 +51,9 @@ module.exports = () => { hot: true, historyApiFallback: true, client: { - overlay: true + overlay: { + runtimeErrors: true + } } }; } diff --git a/webpack.config.js b/webpack.config.js index 125f8e7e..e191be0d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -75,6 +75,15 @@ module.exports = () => { } }; if (dev) { + config.devServer = { + hot: true, + historyApiFallback: true, + client: { + overlay: { + runtimeErrors: true + } + } + }; config.plugins.push( new ESLintPlugin({ files: 'src/main/assets', |