nuxt-eruda
v1.1.0
Published
A Nuxt(3) module for mobile devtools via eruda.
Maintainers
Readme
nuxt-eruda
A Nuxt(3) module for mobile devtools via eruda
Features
- Powered by eruda.
Quick Setup
- Add
nuxt-erudadependency to your project
# Using pnpm
pnpm add -D nuxt-eruda
# Using yarn
yarn add --dev nuxt-eruda
# Using npm
npm install --save-dev nuxt-eruda- Add
nuxt-erudato themodulessection ofnuxt.config.ts
export default defineNuxtConfig({
modules: [
'nuxt-eruda'
],
// custom nuxt-eruda options
eruda: {
enabled: true
// ...
}
})That's it! You can now use nuxt-eruda in your Nuxt app ✨
Options
| Key | Default Value | Description |
| :---: | :---: | :---: |
| enabled | false | Whether to enable eruda |
| initOptions | - | Define init options of eruda |
| plugins | ['eruda-vue'] | Define init plugins of eruda |
Development
# Install dependencies
pnpm install
# Generate type stubs
pnpm dev:prepare
# Develop with the playground
pnpm dev
# Build the playground
pnpm dev:build
# Run ESLint
pnpm lint
# Run Vitest
pnpm test
pnpm test:watch
# Release new version
npm run release