App Embed Theme Extension

Hi all, I’m curious about the validity of including two javascript files in an app embed block’s schema. I’ve had a hard time confirming within the docs. Here’s what I mean:

{
  "name": "App Embed Block",
  "target": "body",
  "javascript": "javascript-file.js, other-javascript-file.js",
  "available_if": "{{ app.metafields.blocks.app_embed_enabled }}",
  "enabled_on": {
    "templates": ["*"]
  }

Hey @hannahtrask

The attribute only supports a single JS file :slightly_smiling_face:

Yes you can only have a single javascript file. However, if you have a project with more that one, you can use a tool like webpack to bundle multiple files together.