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. |
0 replies
|
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 |
1 reply
|
Ahh, okay, I may make a custom helper in our codebase to grep the entrypoints for stuff like this then. |
0 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.
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.All reactions