stencil
stencil copied to clipboard
Sort selectors in generated style
👋
This sorts selectors by component name instead of component order in the dependency tree. The change won't affect the appearance of Stencil components, but will make it easier for external tools to generate a hash of injected style, which should help setting up CSP.
Before:
c-component,a-component,b-component{visibility:hidden}.hydrated{visibility:inherit} /* sha256-B/TVz4hlE0LPqYktS5z2XygEqJWw6XADCoGEXeUKoJs= */
After:
a-component,b-component,c-component{visibility:hidden}.hydrated{visibility:inherit} /* sha256-RbJGguhbDA2O26upcSoCXOydA0wWLSg/SI1HGTOG81k= */