4 ms·
Given that one of the benefits of these approaches is that styles are scoped to components, i don’t see how load order can be a concern
by 33degrees 8y ago
Given that one of the benefits of these approaches is that styles are scoped to components, i don’t see how load order can be a concern
- Spivak 8y agoBecause two stylesheets base.css and mytweaks.css might not load in the order you want even if all the rules are scoped? And at that point you're already using something like webpack to enforce the order you want, why not just make JS do it?
- deleted 8y ago[deleted]
- 33degrees 8y agoI consider the goal of scoping styles is to not require overriding styles, in which case the order shouldn't matter... perhaps that's not practical in all cases but it's worked for me so far.