Resolving/merging @imported CSS files from CSS module imports
#36382
Unanswered
ssalggnikool
asked this question in
Q&A
Replies: 1 comment
|
The CSS module script is not supported |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
#35093 added CSS module imports (
with { type: "css" }), with this, is it possible to import CSS files which use@import, then resolve those imports and merge them into one stylesheet? for instance, if you currently do this:the output, after being bundled with
Deno.bundle, is this:but in my case, where I am bundling for a userscript being used inside a browser, those imports are broken, and I need them to instead be merged into one big string like this (assume
main.cssis importingfonts.css, andfonts.csscontains some font@imports):is this possible?
All reactions