Skip to content

Use typescript configuration vue.config file #4581

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
huanent opened this issue Sep 16, 2019 · 3 comments
Closed

Use typescript configuration vue.config file #4581

huanent opened this issue Sep 16, 2019 · 3 comments

Comments

@huanent
Copy link

huanent commented Sep 16, 2019

What problem does this feature solve?

Use typescript configration vue.config file

What does the proposed API look like?

import { ProjectOptions } from "@vue/cli-service";

export default function() {
return {
outputDir: "build"
} as ProjectOptions;
}

@haoqunjiang
Copy link
Member

Currently, you can use the following snippet for type hints:

/** @type {import('@vue/cli-service').ProjectOptions */
module.exports = {
  
}

@huanent
Copy link
Author

huanent commented Sep 16, 2019

Thanks , it would be great if you could support using .ts in the future like webpack .
https://webpack.js.org/configuration/configuration-languages/

@huanent huanent closed this as completed Sep 16, 2019
@haoqunjiang
Copy link
Member

#2138
#4477

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

2 participants