Getting Started
Installation
Install Nuxt Pages Plus to your Nuxt project using a single line of command using nuxi as shown below.
npx
npx nuxi module add nuxt-pages-plus
Install manually
You can add Nuxt Pages Plus to your Nuxt project by installing the nuxt-pages-plus module as shown below:
npm i -D nuxt-pages-plus
yarn i -D nuxt-pages-plus
pnpm i -D nuxt-pages-plus
Then, in your nuxt.config.ts file add nuxt-pages-plus to the modules section as shown below:
nuxt.config.ts
export default defineNuxtConfig({
modules: ['nuxt-pages-plus']
})
Compatibility
Nuxt Pages Plus supports both Nuxt 3 (>=3.16.0) and Nuxt 4, including their bundled vue-router (v4 for Nuxt 3 – 4.3, v5 for Nuxt 4.4+) and vue versions, with full TypeScript support.
On Nuxt
>=4.5, name@view.vue page files are parsed as vue-router named views by default. Set namedViewsAsParallelRoutes: true in the module options to keep using them as parallel routes.