Static GitHub Issues

[323] Custom layouts dir

prev: Webpack keeps rebuilding
next: Assets use

From this line https://github.com/nuxt/nuxt.js/blob/fbca3d7f78da1edb04bde21fddcc981f562f8fb4/lib/build.js#L148

It seems layouts can only be loaded from srcDir/layouts, is there any chance to add a layoutDir option in nuxt config? My use case is that I want to put all pages in srcDir but put layouts elsewhere.

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