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:

yarn add nuxt-custom-elements
npm install nuxt-custom-elements

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

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

See module options.

Edit this page on GitHub Updated at Wed, Jun 22, 2022