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

Vue-cli creates project with runtime-only vue #1875

Closed
gunzino opened this issue Jul 17, 2018 · 8 comments
Closed

Vue-cli creates project with runtime-only vue #1875

gunzino opened this issue Jul 17, 2018 · 8 comments

Comments

@gunzino
Copy link

gunzino commented Jul 17, 2018

Version

3.0.0-rc.5

Reproduction link

https://pastebin.com/srUKbUKC

Steps to reproduce

I used vue-cli to create project with default setup. I use Babel Lint and Vue router.

However, after build shows up that build was made with vue.runtime.esm.js without template compiler.

What is expected?

Builder should include vue.esm.js

What is actually happening?

Builder include vue.runtime.esm.js

@Akryum
Copy link
Member

Akryum commented Jul 17, 2018

Read the docs? https://cli.vuejs.org/config/

@Akryum Akryum closed this as completed Jul 17, 2018
@sodatea
Copy link
Member

sodatea commented Jul 17, 2018

This is intended.
You can turn on runtimeCompiler option if you want to include the full build.
https://cli.vuejs.org/config/#runtimecompiler

@LuisHCK
Copy link

LuisHCK commented Jul 30, 2018

For future reference:
just create a file: vue.config.js and add this:

module.exports = {
  runtimeCompiler: true
}

@Akryum
Copy link
Member

Akryum commented Jul 30, 2018 via email

@aboutqx
Copy link

aboutqx commented Sep 5, 2018

@Akryum what is the meaning of open/close state,i didn't set the state.

@aboutqx
Copy link

aboutqx commented Sep 5, 2018

The default example generated with vue-cli 3.0,it works without runtimeCompiler set to true,but it uses template, seems it shouldn't work.

@sodatea
Copy link
Member

sodatea commented Sep 5, 2018

@aboutqx runtimeCompiler is for template option support https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only

Template blocks in single file components are already compiled by vue-loader at compile time.

@aboutqx
Copy link

aboutqx commented Sep 5, 2018

Yes,i used the template like template: '<App/>',while the generated one not.

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

5 participants