Skip to content

Commit b9b35d4

Browse files
authoredMay 19, 2021
Remove snippet that is not recommended. (#25220)
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.
1 parent 83a09ee commit b9b35d4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed
 

‎docs/api-reference/next.config.js/custom-webpack-config.md

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ In order to extend our usage of `webpack`, you can define a function that extend
2323
```js
2424
module.exports = {
2525
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
26-
// Note: we provide webpack above so you should not `require` it
27-
// Perform customizations to webpack config
28-
config.plugins.push(new webpack.IgnorePlugin(/\/__tests__\//))
29-
3026
// Important: return the modified config
3127
return config
3228
},

0 commit comments

Comments
 (0)
Please sign in to comment.