You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a build in which I’d like to ensure all the asset references in my CSS successfully resolve. At the moment, I get a warning like:
../../static/img/strikethrough.svg referenced in ../../static/img/strikethrough.svg didn't resolve at build time, it will remain unchanged to be resolved at runtime
…which is great, but the exit code is 0, and this is just a warning. Is there any way to make Vite treat this as an error instead? I’ve looked through the documentation and, if there’s an option, I’m certainly missing it!
(Obviously I can work around it my capturing stderr and grepping for the problems I’m concerned about… or maybe failing if there’s anything on on stderr, but it would be nice if I didn’t have to do that. As-is, I need to at least be careful about debug output on stderr. Not sure if there can be other non-warning/error output on stderr.)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a build in which I’d like to ensure all the asset references in my CSS successfully resolve. At the moment, I get a warning like:
…which is great, but the exit code is 0, and this is just a warning. Is there any way to make Vite treat this as an error instead? I’ve looked through the documentation and, if there’s an option, I’m certainly missing it!
(Obviously I can work around it my capturing stderr and grepping for the problems I’m concerned about… or maybe failing if there’s anything on on stderr, but it would be nice if I didn’t have to do that. As-is, I need to at least be careful about debug output on stderr. Not sure if there can be other non-warning/error output on stderr.)
Beta Was this translation helpful? Give feedback.
All reactions