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 2.0 后端构建与编译分开了 #10

Closed
redDragonLH opened this issue Dec 2, 2016 · 0 comments
Closed

Vue 2.0 后端构建与编译分开了 #10

redDragonLH opened this issue Dec 2, 2016 · 0 comments

Comments

@redDragonLH
Copy link

By default, the NPM package exports the runtime-only build. To use the standalone build, add the following alias to your Webpack config:
resolve: {
alias: {
'vue$': 'vue/dist/vue.common.js'
}
}
For Browserify, you can add an alias to your package.json:
"browser": {
"vue": "vue/dist/vue.common"
},

https://vuejs.org/v2/guide/installation.html#Standalone-vs-Runtime-only-Build

@guowenfh guowenfh closed this as completed Aug 5, 2018
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