Skip to content

Nuxt

Enabled

This plugin is enabled if "nuxt" is listed in "dependencies" or "devDependencies" in package.json.

Default configuration

If this plugin is enabled, the following configuration is added automatically:

{
"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"
]
}
}

Depending on local configuration, plugins may modify the defaults as shown.

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

See Plugins for more details about plugins and their entry and config options.

Note

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

Generated from source

This page was generated from the nuxt plugin source code.

ISC License © 2024 Lars Kappert