Static GitHub Issues

[2777] add ability to auto import components per page

prev: Error while running command "npm run test" or "yarn run test"
next: Duplicating the generation of index.html with nested paths

There is currently no possibility to auto import components per page without writing boilerplate: import myComp from '~/components/my-comp.vue' I suggest adding the ability to group components by page name. Example: pages/index.vue pages/level1.vue pages/level1/level2.vue

components/my-component.vue components/level1/text-component.vue components/level1/level2/image-component.vue

my-component will be auto imported by index.vue page. text-component - by level1.vue image-component - by level2.vue

<!--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/c2410">#c2410</a>)</em></sub></div>