Support

Account

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",
    }