Home

Issue: 3209

support nuxt organization by filename rather than directory name

[issue link]

What problem does this feature solve?

A more flexible app architecture.

What does the proposed changes look like?

Find nuxt modules by foo/foo.store.js and foo/foo.middleware.js rather than store/foo and middleware/food.

My current workaround is disabling router, store, etc and importing all modules independently, but it would be nice to take full advantage of Nuxt.

Nuxt would still be able to know in advance which modules exist based on a simple Regex. The only limitation I can think of is for pages (since they require reserved words and nesting), but I can think of some solutions** or worst case it can be left to @nuxtjs/router.

** ex. nest pages based on location foo/bar/bar.page.vue equals page/foo/bar.vue

This feature request is available on Nuxt.js community (#c6874)