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: site/docs/integrations/vite.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,3 +53,26 @@ Different formatting of identifiers (e.g. class names, keyframes, CSS Vars, etc)
53
53
-`debug` identifiers contain human readable prefixes representing the owning filename and a potential rule level debug name. e.g. `myfile_mystyle_hnw5tz3`
54
54
55
55
Each integration will set a default value based on the configuration options passed to the bundler.
56
+
57
+
### emitCssInSsr
58
+
59
+
Historically, extracting CSS was a side effect of building the browser bundle, with the server or static build process only needing the JavaScript references. However, many frameworks are now moving the evaluation of CSS to be a server-side or compile-time responsibility.
60
+
61
+
For the most common frameworks, Vanilla Extract will set this flag internally based on the plugins it discovers in the consumers Vite configuration.
62
+
This makes the plugin essentially zero config for the majority of cases.
63
+
64
+
For other cases, such as newer frameworks, it may be necessary to manually opt in to emitting CSS during server side rendering:
0 commit comments