API Documentation • Docs
API Documentation / @pinia/nuxt / ModuleOptions
Interface: ModuleOptions
Properties
disableVuex?
optional
disableVuex:boolean
Pinia disables Vuex by default, set this option to false
to avoid it and use Pinia alongside Vuex (Nuxt 2 only)
Default
true
storesDirs?
optional
storesDirs:string
[]
Automatically add stores dirs to the auto imports. This is the same as directly adding the dirs to the imports.dirs
option. If you want to also import nested stores, you can use the glob pattern ./stores/**
Default
['stores']