Skip to content

Commit

Permalink
docs: update README.md (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
meglio authored Apr 5, 2021
1 parent 6657114 commit e8918ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,8 @@ module.exports = {
};
```

Note that `type` should be used instead of `test` in Webpack 5, or else an extra `.js` file can be generated besides the `.css` file. This is because `test` doesn't know which modules should be dropped (in this case, it won't detect that `.js` should be dropped).

### Extracting CSS based on entry

You may also extract the CSS based on the webpack entry name.
Expand Down

0 comments on commit e8918ab

Please # to comment.