Simple nuxt module wrapper around preact-island-plugins
Simple nuxt module wrapper around preact-island-plugins
nuxt-module-preact-islands
dependency to your project# Using pnpm
pnpm add -D nuxt-module-preact-islands tslib
pnpm add preact preact-render-to-string
# Using yarn
yarn add --dev nuxt-module-preact-islands tslib
yarn add preact preact-render-to-string
# Using npm
npm install --save-dev nuxt-module-preact-islands tslib
npm add preact preact-render-to-string
nuxt-module-preact-islands
to the modules
section of nuxt.config.ts
export default defineNuxtConfig({
modules: [
'nuxt-module-preact-islands'
]
})
That's it! You can now use nuxt-module-preact-islands in your Nuxt app
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release