nuxt
nuxt copied to clipboard
Stores array of folder configuration
Is your feature request related to a problem? Please describe.
Trying to load store files from multiple folders, I have found that the feature does not support the same configuration as components.
Describe the solution you'd like
Allow stores
configuration in nuxt.config.js to be able to load store modules from multiple folders.
{
stores: ["~/store", "~/mylib/store"]
}
Describe alternatives you've considered
Thought of using soft links but they are a pain to maintain.
Additional context
See https://nuxtjs.org/docs/configuration-glossary/configuration-components/#overwriting-components
Anyone has insights on this? Can I do a PR to add the feature? Will read up on that.