Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for registering scripts within block.json to be handled with asset loader #55

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Sephsekla
Copy link
Contributor

Still very early WIP, but tracked here for visibility.

Create a new function register_block_type_with_manifests() as a wrapper for register_block_type(), which will filter the data from block.json to load included scripts and styles (e.g. script, editorScript) from a manifest file without having to register them separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant