stencil icon indicating copy to clipboard operation
stencil copied to clipboard

Sort selectors in generated style

Open pavloconuve opened this issue 5 years ago • 0 comments

👋

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= */

pavloconuve avatar Feb 03 '21 12:02 pavloconuve