Skip to content

Commit cc4d561

Browse files
committed
update installation page
1 parent f53dc3e commit cc4d561

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

source/guide/installation.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,21 @@ Simply download and include with a script tag. `Vue` will be registered as a glo
1919
<a class="button" href="https://raw.github.com/yyx990803/vue/{{vue_version}}/dist/vue.min.js" download>Production Version</a><span class="light info">{{min_size}}kb minified / {{gz_size}}kb gzipped</span>
2020
</div>
2121

22-
Also available on [jsdelivr](//cdn.jsdelivr.net/vue/{{vue_version}}/vue.min.js) or [cdnjs](//cdnjs.cloudflare.com/ajax/libs/vue/{{vue_version}}/vue.min.js) (takes some time to sync so the latest version might not be available yet).
22+
### CDN
23+
24+
Available on [jsdelivr](//cdn.jsdelivr.net/vue/{{vue_version}}/vue.min.js) or [cdnjs](//cdnjs.cloudflare.com/ajax/libs/vue/{{vue_version}}/vue.min.js) (takes some time to sync so the latest version might not be available yet).
25+
26+
### CSP-compliant build
27+
28+
Some environments, such as Google Chrome Apps, enforces Content Secuirty Policy (CSP) and does not allow the use of `new Function()` for evaluating expressions. In these cases you can use the [CSP-compliant build](https://github.com/yyx990803/vue/tree/csp/dist) instead.
2329

2430
## NPM
2531

2632
``` bash
2733
$ npm install vue
28-
# for edge version:
34+
# for csp-compliant version:
35+
$ npm install vue@csp
36+
# for dev build (from GitHub):
2937
$ npm install yyx990803/vue#dev
3038
```
3139

@@ -36,14 +44,6 @@ $ npm install yyx990803/vue#dev
3644
$ bower install vue
3745
```
3846

39-
## Duo
40-
41-
```js
42-
var Vue = require('yyx990803/vue')
43-
// for edge version:
44-
var Vue = require('yyx990803/vue@dev')
45-
```
46-
4747
## AMD Module Loaders
4848

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

0 commit comments

Comments
 (0)