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
Hey, I would like to load a css file as a resource, but with additional applying the "default" css loader (experiments.css) on it while bundling - or at least something close to it, so:
importresourceUrlfrom'./style.css';// should output the url of the css fileconsole.log(resourceUrl);
It almost works. Almost because I get the URL of the CSS file, but the file itself is not being "loaded" (url and @import rules are not transformed):
/* lightningcss transformed the file, but rspack didn't parse the imports further */@font-face{font-family:Tiempos Fine;font-style:normal;font-display:swap;src:url(./tiempos-fine-light.woff2)format("woff2")}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, I would like to load a
css
file as a resource, but with additional applying the "default" css loader (experiments.css) on it while bundling - or at least something close to it, so:So far I have the following rule:
It almost works. Almost because I get the URL of the CSS file, but the file itself is not being "loaded" (url and @import rules are not transformed):
How do I make it so the CSS file gets parsed?
Beta Was this translation helpful? Give feedback.
All reactions