Home

Issue: 2708

How to avoid index.vue in each folder and still have router generated ?

[issue link]

Nuxt’s automatic router generation is a feature that I always wished some one had built in a framework.

However having index.vue in many folders is not helping

How can I go from current state to desired state mentioned below ? Is this possible with a settings.

Current ‘pages’ folder structure

pages/
–| user/
-----| index.vue
-----| one.vue
–| index.vue

Desired ‘pages’ folder structure

pages/
–| user/
-----| index.user.vue
-----| one.vue
–| index.pages.vue

Thank you,

This question is available on Nuxt.js community (#c2352)