You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it is suggested in the block metadata documentation block.json is a big help for blocks and in this file styles and scripts can be set to be enqueued.
Currently, a block can have four types of assets: style & script that will be enqueued for both editor and front-end. editorStyle & editorScript that will be enqueued just for editor.
But what happens if a style or script be different for editor and front-end there is no option like frontStyle and frontScript to achieve different assets for editor and front-end.
The text was updated successfully, but these errors were encountered:
As it is suggested in the block metadata documentation block.json is a big help for blocks and in this file styles and scripts can be set to be enqueued.
Currently, a block can have four types of assets:
style
&script
that will be enqueued for both editor and front-end.editorStyle
&editorScript
that will be enqueued just for editor.But what happens if a style or script be different for editor and front-end there is no option like
frontStyle
andfrontScript
to achieve different assets for editor and front-end.The text was updated successfully, but these errors were encountered: