-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Labels
[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Tool] WP Scripts/packages/scripts/packages/scripts[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
- Part of Block API #41236.
Description
A handy feature of @wordpress/scripts is that it generates filename.asset.php files with automated file versioning for cache busting. However this only seems to work for JavaScript files (both automatically via @wordpress/scripts and manually via adding PHP asset files for CSS files).
Is this correct/intended behavior? Is there a way to get automatic versioning for CSS files?
Step-by-step reproduction instructions
Given a style.css file, an adjacent style.asset.php file, and a "style": "file:./style.css"
property in block.json, the php asset file is not honored.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
onetrev, skora-cpl and jamesstomberg
Metadata
Metadata
Assignees
Labels
[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Tool] WP Scripts/packages/scripts/packages/scripts[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended