Replies: 1 comment
-
Hey mate. This is a tricky one. What's actually happening is |
Beta Was this translation helpful? Give feedback.
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.
-
Heya!
Not sure if this is a bug or I am missing configuration. Project setup in Vite + vanilla-extract.
I'm trying to import an image resource within a css.ts file, like
import backgroundUrl from '../../assets/background.svg';
. Which I want to use asconst container = style({ backgroundImage:
url('${backgroundUrl}')});
.This way of importing works fine in .ts files where vite handles these imports. But in css.ts files I get an error "No loader is configured for ".svg" files". Because I'm using vite, I was kinda thinking vite would handle these imports.
Is there configuration missing? Or is this a bug?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions