Skip to content

Commit e8918ab

Browse files
authored
docs: update README.md (#734)
1 parent 6657114 commit e8918ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,8 @@ module.exports = {
768768
};
769769
```
770770

771+
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).
772+
771773
### Extracting CSS based on entry
772774

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

0 commit comments

Comments
 (0)