Skip to content

Commit

Permalink
fix: disable fast-refresh for webpack 4
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Mar 10, 2021
1 parent c241445 commit 15d7e77
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion examples/react-webpack/webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,9 @@ const config = {

module.exports = withComponentControls({
config,
options: { configPath: '.config', distFolder: publicPath },
options: {
configPath: '.config',
distFolder: publicPath,
fastRefresh: false,
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ const config: webpack.Configuration = {
// the following will compile your documentation files before launching the webpack proces to compile the documentation site itself:
module.exports = withComponentControls({
config,
options: { configPath: '.config', distFolder: publicPath },
options: {
configPath: '.config',
distFolder: publicPath,
// for webpack 4 you will need to disable react fast-refresh:
// fastRefresh: false,
},
});
```

Expand Down

0 comments on commit 15d7e77

Please sign in to comment.