Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 1.77 KB

installation.md

File metadata and controls

72 lines (50 loc) · 1.77 KB

title: Installation type: guide order: 1 vue_version: 0.10.6 dev_size: 124.76 min_size: 41.80 gz_size: 14.29

Compatibility Note: Vue.js does not support IE8 and below.

Standalone

Simply download and include with a script tag. Vue will be registered as a global variable.

Development Version{{dev_size}}kb, plenty of comments and debug/warning messages.

Production Version{{min_size}}kb minified / {{gz_size}}kb gzipped

Also available on cdnjs (takes some time to sync so the latest version might not be available yet).

Component

$ component install yyx990803/vue
var Vue = require('vue')

For edge version (unstable branch, use at your own risk!):

$ component install yyx990803/vue@dev

Browserify

$ npm install vue
var Vue = require('vue')

For edge version:

$ npm install yyx990803/vue#dev

The built version in `dist/` doesn't work with Browserify because it assumes it's loaded in global scope and comes with its own `require` mechanism. Always directly use source version when using Vue with Browserify.

Bower

$ bower install vue
<script src="bower_components/vue/dist/vue.js">

AMD Module Loaders

e.g. RequireJS, SeaJS: Built versions in /dist or installed via Bower is wrapped with UMD so it can be used directly as an AMD module.

Ready?

Let's Get Started.