Skip to content

Commit

Permalink
docs(cli-service): Clarify object options for css.extract (vuejs#4402)…
Browse files Browse the repository at this point in the history
… [ci skip]

Link to mini-css-extract-plugin so users can check
what kind of options they can provide.

close vuejs#4401

(cherry picked from commit 5dfea81)
  • Loading branch information
LinusBorg authored and haoqunjiang committed Oct 8, 2019
1 parent b218dfe commit c101afb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c101afb

Please sign in to comment.