create-guten-block icon indicating copy to clipboard operation
create-guten-block copied to clipboard

the build css takes priority during editing with WordPress 5.0

Open WYKDev opened this issue 5 years ago • 5 comments

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

issue

WYKDev avatar Dec 06 '18 21:12 WYKDev

Having same issue.

kimruddock avatar Dec 17 '18 09:12 kimruddock

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 avatar Dec 19 '18 16:12 nicoandrade

@nicoandrade feel free to send me a PR for this?

ahmadawais avatar Dec 20 '18 01:12 ahmadawais

Done :) https://github.com/ahmadawais/create-guten-block/pull/126

nicoandrade avatar Dec 20 '18 13:12 nicoandrade

Is this being merged? Still seems to be an issue.

Thanks for all your hard work @ahmadawais 🙂

mrgrt avatar Jan 14 '19 21:01 mrgrt