BlackbirdDigital / wp-theme-scaffold

Blackbird's WordPress Theme Scaffold
GNU General Public License v2.0
30 stars 1 forks source link

Feature/separate block stylesheets #68

Closed cr0ybot closed 1 year ago

cr0ybot commented 1 year ago

Output separate stylesheets for block style overrides and enqueue/inline them only when the block is present on the front end.

~The only caveat to this is that there is no good way to enqueue different styles for the front and back end. So I'm still including the block styles in the editor stylesheet, which will pick up anything within context.is(editor).~

I've updated the PR so that separate block styles are enqueued only on the front end, and the block styles are included as before in the editor stylesheet. This way there aren't duplicate styles when viewing the editor.

Closes #65.

philhoyt commented 1 year ago

Explain this to me at dev chat