Skip to content

Commit 47fb3b8

Browse files
LinusBorgGuillaume Chau
authored and
Guillaume Chau
committed
docs(css.extract): Explain "always-off" in development mode (#1840) [ci skip]
closes #1801
1 parent 1ec6cf3 commit 47fb3b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/config/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,15 @@ module.exports = {
175175
### css.extract
176176

177177
- Type: `boolean`
178-
- Default: `true` (in production mode)
178+
- Default: `true` (in production mode, always `false` otherwise)
179179

180180
Whether to extract CSS in your components into a standalone CSS files (instead of inlined in JavaScript and injected dynamically).
181181

182182
This is also disabled by default when building as web components (styles are inlined and injected into shadowRoot).
183183

184184
When building as a library, you can also set this to `false` to avoid your users having to import the CSS themselves.
185+
186+
Extracting CSS is always disabled in `development` since it breaks Hot Module Replacement.
185187

186188
### css.sourceMap
187189

0 commit comments

Comments
 (0)