create-guten-block
create-guten-block copied to clipboard
the build css takes priority during editing with WordPress 5.0
I have been observing an issue with the system enqueing css in the wrong order. With Wordpress 5.0, it seems that the block.style.build.css will take priority during editing.
I didn't expereince this prior the release. So I try to rearrange the code in src/init.php. It doesn't seem to do anything.
So my question is how do I change this behavior?
Please see screenshot
Having same issue.
Same issue, a quick fix for now is if you edit line 58 on init.php
.
Basically add the style.scss
as a dependency for editor.scss
, example:
array( 'wp-edit-blocks', 'quema_labs_blocks-cgb-style-css' )
@nicoandrade feel free to send me a PR for this?
Done :) https://github.com/ahmadawais/create-guten-block/pull/126
Is this being merged? Still seems to be an issue.
Thanks for all your hard work @ahmadawais 🙂