Skip to content

Commit

Permalink
feat(bundler-webpack): disable overlay as default
Browse files Browse the repository at this point in the history
  • Loading branch information
kagawagao committed Jun 11, 2024
1 parent a253991 commit fe04e0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/bundler-webpack/src/config/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
6 changes: 5 additions & 1 deletion packages/bundler-webpack/src/config/spa/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fe04e0b

Please sign in to comment.