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

Allow a way to get the "full build" of Vue using the CLI #1040

Closed
mattgrande opened this issue Mar 26, 2018 · 6 comments
Closed

Allow a way to get the "full build" of Vue using the CLI #1040

mattgrande opened this issue Mar 26, 2018 · 6 comments

Comments

@mattgrande
Copy link

What problem does this feature solve?

(Forgive me if this already exists, I couldn't find it)

As I'm sure you are all aware, there are a few different builds of Vue included in the NPM package. I would be helpful to be able to specify "I would like the full build version."

What does the proposed API look like?

Eg, vue-cli-service serve --build=full

@yyx990803
Copy link
Member

You can use compiler: true in vue.config.js

@mattgrande
Copy link
Author

Sorry, I don't see a vue.config.js file?

@Akryum
Copy link
Member

Akryum commented Mar 26, 2018

Create one at the root of your project.

@mattgrande
Copy link
Author

Ah, okay, I see what you're talking about.

For others coming here, documentation is here: https://alligator.io/vuejs/using-new-vue-cli-3/#the-vueconfigjs-file

@jonathanbrincat
Copy link

jonathanbrincat commented Jul 9, 2018

For the sanity of others a slight correction to the above info. Key to trigger boolean is:
runtimeCompiler: true

Fyi configuration can either go under a vue config key in package.json or it's own vue.config.js file.

@Akryum
Copy link
Member

Akryum commented Jul 9, 2018

Documentation: https://cli.vuejs.org/config/#runtimecompiler

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

4 participants