Skip to content

Nuxt

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

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

{
"nuxt": {
"config": [
"nuxt.config.{js,mjs,ts}"
],
"entry": [
"app.{vue,jsx,tsx}",
"error.{vue,jsx,tsx}",
"pages/**/*.{vue,jsx,tsx}",
"layouts/default.{vue,jsx,tsx}",
"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.

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

This page was generated from the nuxt plugin source code.

ISC License © 2024 Lars Kappert