Help wanted in vite with minified css #213
Answered
by
Mister-Hope
Mister-Hope
asked this question in
Q&A
-
Here is another thing I cannot seach for an answer.
Why should vite process this file as cjs? It already has a css extension: import "balloon-css/balloon.css"; |
Beta Was this translation helpful? Give feedback.
Answered by
Mister-Hope
Jun 13, 2021
Replies: 1 comment
-
Solution: clearing the cache and rebuild do helpes. Just for anyone who is trying to import a module with it's Unlike webpack, vite can not process it. So you should always use the full path to make it compatable with vite. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mister-Hope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution: clearing the cache and rebuild do helpes.
Just for anyone who is trying to import a module with it's
main
field not pointing to a js file:Unlike webpack, vite can not process it. So you should always use the full path to make it compatable with vite.