diff --git a/src/v2/guide/installation.md b/src/v2/guide/installation.md index 64717da8ae..ef2e32c229 100644 --- a/src/v2/guide/installation.md +++ b/src/v2/guide/installation.md @@ -64,7 +64,13 @@ resolve: { } ``` -For Browserify, you can use [aliasify](https://github.com/benbria/aliasify) to achieve the same. +For Browserify, you can add an alias to your package.json: + +``` js +"browser": { + "vue": "vue/dist/vue.common" +}, +```
Do NOT do `import Vue from 'vue/dist/vue.js'` - since some tools or 3rd party libraries may import vue as well, this may cause the app to load both the runtime and standalone builds at the same time and lead to errors.