Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions