Skip to content

Commit

Permalink
Remove snippet that is not recommended. (#25220)
Browse files Browse the repository at this point in the history
In general this means you did something wrong in your application (importing tests for example), so this should be fixed in the app, not using custom config.
  • Loading branch information
timneutkens committed May 19, 2021
1 parent 83a09ee commit b9b35d4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/api-reference/next.config.js/custom-webpack-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ In order to extend our usage of `webpack`, you can define a function that extend
```js
module.exports = {
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
// Note: we provide webpack above so you should not `require` it
// Perform customizations to webpack config
config.plugins.push(new webpack.IgnorePlugin(/\/__tests__\//))

// Important: return the modified config
return config
},
Expand Down

0 comments on commit b9b35d4

Please sign in to comment.