Closed schlotterer closed 1 year ago
This was done before but we have to remove that so that Tailwind will work with only just one config file. All custom block styles will be added under the src/scss/blocks/custom
folder. We can probably add that as part of the WPClI command. I'm pulling in @guzmandrade-wds here to see if this is something that we can do.
@khleomix https://github.com/WebDevStudios/wd_f/pull/44 adds to the WP-CLI
command some changes, so block style files src/scss/blocks/custom/<block_name>.scss
and src/scss/blocks/custom/<block_name>.editor.scss
are used in the build/watch processes. Since the styles are added as file:*
in block.json
we don't need to enqueue them as with critical.css
.
Thanks @guzmandrade-wds. Closing this out as done.
Create a blocks specific build process that creates and registers the css in the block folder. This allows for more efficient rendering of the css and again contributes to block portability.