Skip to content

Nuxt

Enabled

This plugin is enabled when there’s a match in dependencies or devDependencies in package.json:

  • nuxt

Note

Knip works best with explicit imports. Nuxt allows to disable auto-imports.

Default configuration

This configuration is added automatically if the plugin is enabled:

{
"nuxt": {
"entry": [
"nuxt.config.{js,mjs,ts}",
"app.vue",
"error.vue",
"pages/**/*.vue",
"layouts/default.vue",
"middleware/**/*.ts",
"server/api/**/*.ts",
"server/routes/**/*.ts",
"server/middleware/**/*.ts",
"server/plugins/**/*.ts"
]
}
}

Your custom config or entry options override default values, they are not merged.

See Plugins for more details.

ISC License © 2024 Lars Kappert