mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-21 11:58:36 -05:00
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 5dfea8134f)
This commit is contained in:
committed by
Haoqun Jiang
parent
b218dfec29
commit
c101afbd71
@@ -276,6 +276,8 @@ In v3 this means the opposite of `css.requireModuleExtension`.
|
||||
When building as a library, you can also set this to `false` to avoid your users having to import the CSS themselves.
|
||||
|
||||
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`.
|
||||
|
||||
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.
|
||||
|
||||
### css.sourceMap
|
||||
|
||||
|
||||
Reference in New Issue
Block a user