Docs for ACF Blocks sucks – sorry.
Can anyone share examples of usage of scripts & styles or how you’re handling custom svg icons or even what we can put under "acf"
? How to use “matrix content align” with ACF 6.0?
How to get the values for backgrounds?
I’m sorry, but before 6.0 every change from Eliot was well documented – now it’s just a mess.
Please share your solutions with hope the docs will soon be better than now, as now it’s tragedic for new users and more often past year even for me
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",
}