Nuxt 3 Minimal Starter with Salesforce Lightning Web Components
Make sure to install the dependencies:
yarn install
Compile the Lightning Web Component Configuration
yarn build-lwc
To add LWC from the lightning base components, you can import them in src/index.js, for example to include the lightning-button, add:
import Button from 'lightning/button';
customElements.define('lightning-button', Button.CustomElementConstructor);
yarn build-lwc
Start the development server on http://localhost:3000
:
yarn dev
Build the application for production:
yarn build
Locally preview production build:
yarn preview
How to setup base components:
Disable SSR due to bug:
Author: flemx
Source: https://github.com/flemx/nuxt-lwc
License: