You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,16 +198,16 @@ module.exports = {
198
198
199
199
### css.extract
200
200
201
-
- Type: `boolean`
202
-
- Default: `true`(in production mode, always `false`otherwise)
201
+
- Type: `boolean | Object`
202
+
- Default: `true` in production, `false`in development
203
203
204
204
Whether to extract CSS in your components into a standalone CSS files (instead of inlined in JavaScript and injected dynamically).
205
205
206
-
This is also disabled by default when building as web components (styles are inlined and injected into shadowRoot).
206
+
This is always disabled when building as web components (styles are inlined and injected into shadowRoot).
207
207
208
208
When building as a library, you can also set this to `false` to avoid your users having to import the CSS themselves.
209
209
210
-
Extracting CSS is always disabled in `development`since it breaks Hot Module Replacement.
210
+
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`.
0 commit comments