Replies: 1 comment 15 replies
-
|
Does this work for you? Using ESM imports this way isn't recommended, and the export that you get back is essentially the same as the snippet I shared above. |
Beta Was this translation helpful? Give feedback.
15 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Snowpack allow to import an image (or any file) this way:
As we can see in this example import only get the URL of the file.
For CSS, Snowpack have another behaviors : CSS is directly added to DOM.
I only want to get my CSS file URL.
How to configure Snowpack to disable special beahviors for CSS (or json)?
Beta Was this translation helpful? Give feedback.
All reactions