@pinia/nuxt
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

@pinia/nuxt

Nuxt 2 & 3 module

Installation

npm i @pinia/nuxt

Usage

Add to modules (Nuxt 3) or buildModules (Nuxt 2) in nuxt.config.js:

// Nuxt 2
export default {
  buildModules: [['@pinia/nuxt', { disableVuex: true }]],
}
// Nuxt 3
export default defineNuxtConfig({
    modules: ['@pinia/nuxt'],
})

Note you also need @nuxtjs/composition-api if you are using Nuxt 2 without Bridge. Refer to docs for more.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @pinia/nuxt

Weekly Downloads

185,922

Version

0.5.1

License

MIT

Unpacked Size

8.69 kB

Total Files

15

Last publish

Collaborators

  • posva
  • danielroe