8000 docs(cli-service): Clarify object options for css.extract (#4402) [ci… · vuejs/vue-cli@5dfea81 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5dfea81

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
1 parent 78f5a5d commit 5dfea81

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
@@ -266,6 +266,8 @@ See [the plugin's README](https://github.com/vuejs/vue-cli/blob/dev/packages/%40
266266
When building as a library, you can also set this to `false` to avoid your users having to import the CSS themselves.
267267

268268
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`.
269+
270+
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.
269271

270272
### css.sourceMap
271273

0 commit comments

Comments
 (0)
0