better error handling
fuzetsu opened this issue · comments
Currently (particularly in prod mode) if one rule has a css syntax error in it the whole style will fail to generate and nothing will be applied, also the syntax error in unclear, because we spit out the whole style string instead of just the rule that failed.
Would be nice to add a try catch to insertRule
to log which specific rules failed, and prevent the whole style from failing just because of that one rule.