Static GitHub Issues

[335] Store and middleware location as aliases

prev: how to search element in DOM?
next: Guide on handling protected SSR api requests

Hello guys,

I'm trying to write a nuxt starter library where all my apps will inherit some predefined pages, routes, plugins, etc.

I have the following structure :

<img width="609" alt="screen shot 2017-03-03 at 12 29 17 am" src="https://cloud.githubusercontent.com/assets/140107/23533271/7b05f2f6-ffa8-11e6-9867-a32e3622f050.png">

For the structure to be complete I'm looking for a way to have nuxt load middlewares and stores from another location than the srcDir (in this case the .portal dir).

I see two ways to achieve that : 1. Have store and middleware as aliases like the ~plugins so that it can be changed in build { extend(config) { ... } } 2. Instruct nuxt to look for stores and middlewares in multiple locations

For both, I'll have to fork the project I guess. Is there a way to achieve that with the current API ?

Thanks.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c288">#c288</a>)</em></sub></div>