Custom Elements Manifest

We support custom-elements.json based on the newest standard Custom Elements Manifest format .

Generating

Open the 3-dots menu in the editor and choose Generate "custom-elements.json" from OPTIONS. Under the hood we run @custom-elements-manifest/analyzer. It might need some time to process all files.

Please refer to the @custom-elements-manifest/analyzer config page to learn more about the analyzer and its configuration options.

Distribution

For tools to find your Custom Elements Manifest file you need to specify it in package.json manually:

// package.json
{
  ...
  "customElements": "custom-elements.json"
  ...
}

Make sure to set a correct path if you put the file in a non-root dir.

Schema

We automatically load the schema for custom-elements.json files in the editor and provide hints and validation based on it.

References