Replies: 3 comments 1 reply
-
Hi Thijs! You should be getting a 404 when the browser requests the non-existing stylesheet, as that's what the Vite dev server does by default. Feel free to share a screenshot if that's not the case. |
Beta Was this translation helpful? Give feedback.
-
Yes, the browser does a 404 but you don't necessarily notice that unless you are looking at your developer console. Doing the same thing with sprockets would give you a nice |
Beta Was this translation helpful? Give feedback.
-
Ahh, okay, I may make a custom helper in our codebase to grep the entrypoints for stuff like this then. |
Beta Was this translation helpful? Give feedback.
-
I noticed that there is no error if you point to a non existent stylesheet. It would be great if
vite_stylesheet_tag
(and probably the other tag helpers) would error out instead of just showing the vite-ruby splash page. Some stylesheets can have subtle style rules which get missed by developers if there is a typo.Beta Was this translation helpful? Give feedback.
All reactions