Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block metadata frontStyle and frontScript just for front-end #34620

Closed
amir2mi opened this issue Sep 7, 2021 · 2 comments
Closed

block metadata frontStyle and frontScript just for front-end #34620

amir2mi opened this issue Sep 7, 2021 · 2 comments

Comments

@amir2mi
Copy link
Contributor

amir2mi commented Sep 7, 2021

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.

@Mamaduka
Copy link
Member

Mamaduka commented Sep 7, 2021

Hi, @amir2mi

Here's a tracking issue for proposed improvements #33542.

@amir2mi
Copy link
Contributor Author

amir2mi commented Sep 7, 2021

Hi @Mamaduka, thanks. I'll wait for it undoubtedly changes will be cool!

@amir2mi amir2mi closed this as completed Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants