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
Heroicon warns via a console message, if an icon does not exist. This is too subtle for me. I want it to scream into my face while I am in development, test and maybe also in the staging environment.
I solved this with a monkey patch. However, I would prefer to be able to configure this.
# Monkey patch to raise an error if the icon does not existclassHeroicon::IcondefwarningreturnunlessRails.env.development? || Rails.env.test?raiseArgumentError,"The icon '#{name}' does not exist."endend
The text was updated successfully, but these errors were encountered:
Heroicon warns via a console message, if an icon does not exist. This is too subtle for me. I want it to scream into my face while I am in development, test and maybe also in the staging environment.
I solved this with a monkey patch. However, I would prefer to be able to configure this.
The text was updated successfully, but these errors were encountered: