Skip to content

Commit

Permalink
chore: Update tools
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed Mar 28, 2024
1 parent 1b7ff43 commit 12102ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/bin/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ function httpError(error) {
configure.devtool = 'eval-cheap-module-source-map';
configure.watchOptions = { aggregateTimeout: 256 };

// 禁用 React DevTools 下载提示
// See: https://github.com/facebook/react/pull/11448
configure.plugins.push(
new webpack.DefinePlugin({
__REACT_DEVTOOLS_GLOBAL_HOOK__: '({ isDisabled: true })'
})
);

const app = new Koa();
const compiler = webpack(configure);

Expand Down

0 comments on commit 12102ba

Please sign in to comment.