Skip to content

Cache block.json reads through a pre compiled PHP file at built time #291

@fabiankaegy

Description

@fabiankaegy

wp-scripts has shipped something similar a while back and core has a helper function for it: https://github.com/WordPress/gutenberg/tree/trunk/packages/scripts#build-blocks-manifest

We should really make our tooling support this so we don't do the glob / json read on every single request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions