Vue-cli: Allow a way to get the "full build" of Vue using the CLI

Created on 26 Mar 2018  路  6Comments  路  Source: vuejs/vue-cli

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

Most helpful comment

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.

All 6 comments

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

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

Create one at the root of your project.

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

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.

Was this page helpful?
0 / 5 - 0 ratings