Creating Multiple CSS Output Files #843
-
TL;DR: See this comment for an explanation of how I implemented @roginfarrer's suggestion, to do this with Vite. Hey folks. I feel like I had seem some content, in the past, saying that VE could no generate multiple CSS files — it just jammed everything into one. But I can't seem to find anything conclusive, either way. To clarify, I'm using VE to help me generate CSS for a design system, and would like to have a controlled way to say: put these global styles in one file, and these other global styles in another file. I am not looking for some component-centric code splitting, because I'm building utility classes for general styling purposes. Does anyone know if that is possible right now? If so, how? The docs seem to imply it's not possible, with statements like:
(Noting that "file" is singular there). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Easiest way to do this is have your build step target one set of css files to compile together, then target another set of css files to compile together, etc. |
Beta Was this translation helpful? Give feedback.
Easiest way to do this is have your build step target one set of css files to compile together, then target another set of css files to compile together, etc.