Skip to content

Can I move the 'vue.config.js' to other folder? #4216

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

Closed
pikadun opened this issue Jul 1, 2019 · 4 comments
Closed

Can I move the 'vue.config.js' to other folder? #4216

pikadun opened this issue Jul 1, 2019 · 4 comments

Comments

@pikadun
Copy link

pikadun commented Jul 1, 2019

What problem does this feature solve?

I want to keep my root directory clean

What does the proposed API look like?

I can specify the path to vue.config.js in package.json or cli-service automatically scans the directory where vue.config.js is the root directory.

@haoqunjiang
Copy link
Member

There will not be a first-class option for this because we prefer all Vue CLI projects to have a consistent, standard directory structure. Using a different directory name is only a matter of personal taste, so if you insist on changing that, you are on your own.

#1134 (comment)

This is an unnecessary maintenance burden for us so we are not likely to support it.

@pikadun
Copy link
Author

pikadun commented Jul 2, 2019

this can slove my problem

@haoqunjiang
Copy link
Member

Note: this is an undocumented flag; we have no plan to remove it in the foreseeable future but there's also no guarantee of full official support for it. For now, this workaround may work fine for your project, but due to lack of testing, other new features may or may not work well with this flag, you are on your own in that case.

@basickarl
Copy link

basickarl commented Feb 21, 2022

It's ridiculous the Vue forces this. Here is how we fixed it in the package.json scripts:

"development": "npm exec -- nodenv --env configs/.env.development --exec npm -- exec -- vue-cli-service serve",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants