Export CSS to file #376
-
Hello, Do you know if (using Twin, Tailwind and Goober) it's possible to export the CSS to its own file for production? That way, the CSS file can be external and referenced with a With HTTP/2 multiplexing, the CSS file could then be downloaded in parallel to the main JS file. I know that this isn't appropriate/possible for all scenarios (ie, with dynamic client-side apps where the component composition isn't known ahead of time), but for what I'm working on (an embeddable widget using Preact) an exported CSS file would be appropriate. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
All of the current presets have a client runtime so I'm afraid it's not possible - yet. |
Beta Was this translation helpful? Give feedback.
All of the current presets have a client runtime so I'm afraid it's not possible - yet.
Once twin gets it's linaria preset then we'll have an external css file output. I'm in the middle of some documentation updates and I plan on moving over to this shortly afterwards.
More about linaria