Skip to content

Commit

Permalink
Remove ./node_modules/ from require in example (#16470)
Browse files Browse the repository at this point in the history
Node will automatically look in the node_modules directory, so listing it isn't needed
  • Loading branch information
ajlende authored and aduth committed Jul 9, 2019
1 parent 76aa715 commit bd23075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ To extend the provided webpack config, or replace subsections within the provide
In the example below, a `webpack.config.js` file is added to the root folder extending the provided webpack config to include [`@svgr/webpack`](https://www.npmjs.com/package/@svgr/webpack) and [`url-loader`](https://github.com/webpack-contrib/url-loader):

```javascript
const defaultConfig = require("./node_modules/@wordpress/scripts/config/webpack.config");
const defaultConfig = require("@wordpress/scripts/config/webpack.config");

module.exports = {
...defaultConfig,
Expand Down

0 comments on commit bd23075

Please sign in to comment.