From fe04e0bc8014760ff1a55ab459f33cc6c8f0a0e8 Mon Sep 17 00:00:00 2001 From: kagawagao Date: Tue, 11 Jun 2024 09:26:15 +0800 Subject: [PATCH] feat(bundler-webpack): disable overlay as default --- packages/bundler-webpack/src/config/server.ts | 4 ++-- packages/bundler-webpack/src/config/spa/base.ts | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/bundler-webpack/src/config/server.ts b/packages/bundler-webpack/src/config/server.ts index 694f718..8d5c54b 100644 --- a/packages/bundler-webpack/src/config/server.ts +++ b/packages/bundler-webpack/src/config/server.ts @@ -30,8 +30,8 @@ const createServer = (host: string, port: number, publicPath = '/'): Configurati }, setupExitSignals: true, client: { - logging: 'info', - overlay: true, + logging: 'error', + overlay: false, progress: false, webSocketTransport: 'ws', webSocketURL: { diff --git a/packages/bundler-webpack/src/config/spa/base.ts b/packages/bundler-webpack/src/config/spa/base.ts index fc1fcd1..fb640c2 100644 --- a/packages/bundler-webpack/src/config/spa/base.ts +++ b/packages/bundler-webpack/src/config/spa/base.ts @@ -136,7 +136,11 @@ const config: Configuration = { if (DEV) { // config.plugins.push(new webpack.HotModuleReplacementPlugin()); - config.plugins!.push(new ReactRefreshWebpackPlugin()); + config.plugins!.push( + new ReactRefreshWebpackPlugin({ + overlay: false, + }), + ); } if (PRODUCT) {