Skip to content

Commit c101afb

Browse files
LinusBorghaoqunjiang
authored andcommitted
docs(cli-service): Clarify object options for css.extract (#4402) [ci skip]
Link to mini-css-extract-plugin so users can check what kind of options they can provide. close #4401 (cherry picked from commit 5dfea81)
1 parent b218dfe commit c101afb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/config/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ In v3 this means the opposite of `css.requireModuleExtension`.
276276
When building as a library, you can also set this to `false` to avoid your users having to import the CSS themselves.
277277

278278
Extracting CSS is disabled by default in development mode since it is incompatible with CSS hot reloading. However, you can still enforce extraction in all cases by explicitly setting the value to `true`.
279+
280+
Instead of a `true`, you can also pass an object of options for the [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) if you want to further configure what this plugin does exactly.
279281

280282
### css.sourceMap
281283

0 commit comments

Comments
 (0)