@vue-scan/nuxt
v0.1.2
Published
Nuxt module for enabling Vue Scan in Nuxt applications.
Maintainers
Readme
@vue-scan/nuxt
@vue-scan/nuxt is the Nuxt module for enabling Vue Scan in Nuxt applications.
It wires the client plugin for you and forwards the module options into runtimeConfig.public.vueScan.
Install
bun add -D @vue-scan/nuxt @vue-scan/scanUsage
Add the module to your Nuxt config:
export default defineNuxtConfig({
modules: ['@vue-scan/nuxt'],
vueScan: {
enabled: true,
allowProduction: false,
logging: false,
toolbar: {
enabled: true,
showFps: true,
},
},
});The module only boots on the client and stays disabled in production unless you explicitly set allowProduction: true.
Options
{
enabled: true,
allowProduction: false,
logging: false,
toolbar: {
enabled: true,
showFps: true,
},
}Legacy aliases are still accepted:
dangerouslyForceRunInProductionlogshowToolbarshowFPS
Related Packages
@vue-scan/scanprovides the core runtime used by this module@vue-scan/vite-plugin-vue-scanis the Vite integration for non-Nuxt projects
Repository Docs
- Project workflow, release flow, and hotfix policy:
https://github.com/ivan-cavero/vue-scan#git-flow - Full installation and integration guide:
https://github.com/ivan-cavero/vue-scan
