Skip to content

Commit 6040a24

Browse files
committed
Update README.md
Excluding the node_modules folder might be easier in some contexts.
1 parent 6cb05c9 commit 6040a24

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

part2/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ by an extreme amount.
218218

219219
`include` prevents this by specifying that this loader only applies to `.js` files in your `src` directory.
220220

221+
Alternative you could change `include: path.join(__dirname, 'src')` to `exclude: /node_modules/` which will then
222+
include everything but the `node_modules` folder. More information can be found [here](https://webpack.github.io/docs/configuration.html#module-loaders).
223+
221224
## We are Done?
222225

223226
Honestly I thought this tutorial would be longer, but it seems I forgot that adding babel is

0 commit comments

Comments
 (0)