Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuxt module add -> select the nuxt.config.ts to install when working with layers #361

Open
2 of 4 tasks
martinszeltins opened this issue Mar 15, 2024 · 0 comments · May be fixed by #380
Open
2 of 4 tasks

nuxt module add -> select the nuxt.config.ts to install when working with layers #361

martinszeltins opened this issue Mar 15, 2024 · 0 comments · May be fixed by #380
Labels
enhancement New feature or request

Comments

@martinszeltins
Copy link

Describe the feature

When working with Nuxt Layers and you add a Nuxt module using the Nuxt Devtools or using nuxi nuxi module add tailwind it adds the module to the root nuxt.config.ts file and this is not configurable.

My nuxt.config.ts file is only for extending layers and I do not want Nuxt to add modules here. It would be very nice if this was configurable (or if asked me which nuxt.config.ts to use) so that I can specify which nuxt.config.ts file I actually want it to use. Maybe before adding the module it could ask me which one I want it to add the module to.

common
  └─ components
  └─ composables
  └─ nuxt.config.ts   <------ I actually want nuxi to add the module here
users
  └─ components
  └─ composables
  └─ nuxt.config.ts
nuxt.config.ts        <--------- it adds it here (root)

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

@danielroe danielroe transferred this issue from nuxt/nuxt Mar 15, 2024
@Atinux Atinux added the enhancement New feature or request label Mar 16, 2024
@Atinux Atinux changed the title When working with Layers, Nuxt adds the module to the root nuxt.config.ts but that is not what I wanted nuxt module add -> select the nuxt.config.ts to install when working with layers Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants