[wp-trac] [WordPress Trac] #59673: Add viewStyle block.json property for frontend-only block styles
WordPress Trac
noreply at wordpress.org
Fri Nov 3 12:41:51 UTC 2023
#59673: Add viewStyle block.json property for frontend-only block styles
--------------------------------------+---------------------
Reporter: gaambo | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.5
Component: Editor | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Changes (by gziolo):
* version: => trunk
* milestone: Awaiting Review => 6.5
Comment:
> Actually it's just the schema + documentation changes and adding it to
the create-block package. The @wordpress/scripts packages needs no changes
as far as I can see.
Yes, I tested what happens when you import a style inside the `viewScript`
(`src/view.js` or similar) for the block scaffolded with `@wordpress
/create-block`. It simply creates a CSS file with the same name as the
entry point, so in the example it's `build/view.css`. No further changes
are necessary.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59673#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list