WPDefinedAsset doesn't implemented for CSS files referenced in block.json #56838
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Tool] WP Scripts
/packages/scripts
[Type] Bug
An existing feature does not function as intended
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
The text was updated successfully, but these errors were encountered: