Closed Connum closed 4 years ago
@asharirfan @saqibameen test this one and approve the PR so I can release a new version.
Thank you! @Connum
Successfully published:
Hi, would it be better to change the dependency to like array( 'wp-block-library' )
here:
https://github.com/ahmadawais/create-guten-block/commit/f24100b25a9c92fdbdc5ce46f009d22144cfb56f#diff-4317d120593768bbdedb26f6949dadadR35
?
This way the additional scripts are not loaded and we have a chance to overwrite the default styles for core blocks since the styles are loaded after core styles?
Only add
wp-editor
as block CSS dependency when in admin context, in order to avoid WordPress enqueuing additional backend CSS in the frontend leading to unnecessary requests.This addresses issue #210.