Home › Forums › Gutenberg › All possible block.json Values and how to use them › Reply To: All possible block.json Values and how to use them
I’ll start with the point that it’s easier to use script handle rather than script file to all JS & CSS files:
{
"name": "block-name",
"style": "block-handle-css",
"editorStyle": "block-handle-css-editor",
"script": "block-handle-js",
"editorScript": "block-handle-js-editor",
"viewScript": "block-handle-js-view",
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.