-
This might be more of a general vite question -- does anyone have any good places to refer to me to ask general vite questions? Are there better options than Stack Overflow? But, I'll try it here anyway... I think Like:
? I am finding that this works fine with
And not only is the CSS not loaded, but the JS file including the Odd that it works with Weirdly though, if the file ends in |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
OK, I can't actually reproduce this in an ultra simple rails/vite app... but it's definitely happening in my app. I guess I need to figure out the minimal reproduction case, something is messing it up.... |
Beta Was this translation helpful? Give feedback.
-
WOW. OK, that took me way too many hours to figure out. It appears that when importing CSS from JS, vite (in dev server mode) really does not like an extra
Works fine when building for production Works fine as So this is probably a It is a bug? Is it a documented thing, something I should have known better about? I don't know, but wow that was hard to track down. |
Beta Was this translation helpful? Give feedback.
-
Upgrading to |
Beta Was this translation helpful? Give feedback.
Upgrading to
vite_ruby@3.2.11
should fix the problem of files such asjquery.tree.css
not being proxied to the Vite dev server 😃