Skip to content

Setup

Check the Nuxt.js documentation for more information about installing and using modules in Nuxt.js.

Installation

Add nuxt-custom-elements dependency to your project:

bash
yarn add nuxt-custom-elements@beta
bash
npm install nuxt-custom-elements@beta

Then, add nuxt-custom-elements to the modules section of nuxt.config.js:

js
{
  modules: [
    'nuxt-custom-elements'
  ],
  customElements: {
    // Options
  }
}

See module options.