Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.94 KB

installation.md

File metadata and controls

53 lines (37 loc) · 1.94 KB
type order vue_version dev_size min_size gz_size
guide
0
1.0.10
240.69
68.54
23.46

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. Pro tip: don't use the minified version during development. you will miss out all the nice warnings for common mistakes.

Development VersionWith full warnings and debug mode

Production VersionWarnings stripped, {{gz_size}}kb min+gzip

CDN

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

CSP-compliant build

Some environments, such as Google Chrome Apps, enforces Content Security Policy (CSP) and does not allow the use of new Function() for evaluating expressions. In these cases you can use the CSP-compliant build instead.

NPM

NPM is the recommended installation method when building large scale apps with Vue.js. It pairs nicely with a CommonJS module bundler such as Webpack or Browserify. Vue.js also provides accompanying tools for authoring Single File Components.

# latest stable
$ npm install vue
# latest stable + CSP-compliant
$ npm install vue@csp
# dev build (directly from GitHub):
$ npm install vuejs/vue#dev

Bower

# latest stable
$ bower install vue

AMD Module Loaders

The standalone downloads or versions installed via Bower are wrapped with UMD so they can be used directly as an AMD module.