Skip to content

Commit

Permalink
fix: do not add react refresh in production
Browse files Browse the repository at this point in the history
  • Loading branch information
swashata committed Aug 7, 2020
1 parent 1f4cb57 commit bf4279b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/scripts/src/config/WebpackConfigHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,8 @@ ${bannerConfig.copyrightText}${bannerConfig.credit ? creditNote : ''}`,
if (
this.config.hasReact &&
!this.config.disableReactRefresh &&
addReactRefresh
addReactRefresh &&
this.isDev
) {
if (!finalOptions.plugins) {
finalOptions.plugins = [];
Expand Down

0 comments on commit bf4279b

Please sign in to comment.