0.0.2 • Published 7 months ago
nuxt-module-preact-islands v0.0.2
nuxt-module-preact-islands
Simple nuxt module wrapper around preact-island-plugins
NOT YET RELEASED!
Quick Setup
- Add
nuxt-module-preact-islands
dependency to your project
# Using pnpm
pnpm add -D nuxt-module-preact-islands
pnpm add preact preact-render-to-string
# Using yarn
yarn add --dev nuxt-module-preact-islands
yarn add preact preact-render-to-string
# Using npm
npm install --save-dev nuxt-module-preact-islands
npm add preact preact-render-to-string
- Add
nuxt-module-preact-islands
to themodules
section ofnuxt.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 ✨
Development
# 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