Replies: 1 comment
-
You can achieve that by creating a plugin using the |
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
-
I want to set a rule so that assets with certain extensions are imported as raw strings. You can do this explicitly using
import path/to/file?raw
, but is there a way to set a rule to make this automatic?I've noticed that esbuild and webpack supports this, but I can't find an equivalent in vite. Any help will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions