Skip to content

Commit c50762f

Browse files
phananchrisvfritz
authored andcommitted
Replace references to npmcdn with unpkg (#386)
npmcdn.com has been recently renamed to unpkg.com. This commit replaces all references to npmcdn with unpkg.
1 parent d36317c commit c50762f

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

src/guide/comparison.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ React is renowned for its steep learning curve. Before you can really get starte
204204
While Vue scales up just as well as, if not better than React, it also scales down just as well as jQuery. That's right - all you have to do is drop a single script tag into a page:
205205

206206
``` html
207-
<script src="https://npmcdn.com/vue@next/dist/vue.js"></script>
207+
<script src="https://unpkg.com/vue@next/dist/vue.js"></script>
208208
```
209209

210210
Then you can start writing Vue code and even ship the minified version to production without feeling guilty or having to worry about performance problems.

src/guide/computed.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ For example:
171171
<!-- and collections of general-purpose utility methods, Vue core -->
172172
<!-- is able to remain small by not reinventing them. This also -->
173173
<!-- gives you the freedom to just use what you're familiar with. -->
174-
<script src="https://npmcdn.com/axios@0.12.0/dist/axios.min.js"></script>
175-
<script src="https://npmcdn.com/lodash@4.13.1/lodash.min.js"></script>
174+
<script src="https://unpkg.com/axios@0.12.0/dist/axios.min.js"></script>
175+
<script src="https://unpkg.com/lodash@4.13.1/lodash.min.js"></script>
176176
<script>
177177
var watchExampleVM = new Vue({
178178
el: '#watch-example',
@@ -230,8 +230,8 @@ Result:
230230
</p>
231231
<p>{{ answer }}</p>
232232
</div>
233-
<script src="https://npmcdn.com/axios@0.12.0/dist/axios.min.js"></script>
234-
<script src="https://npmcdn.com/lodash@4.13.1/lodash.min.js"></script>
233+
<script src="https://unpkg.com/axios@0.12.0/dist/axios.min.js"></script>
234+
<script src="https://unpkg.com/lodash@4.13.1/lodash.min.js"></script>
235235
<script>
236236
var watchExampleVM = new Vue({
237237
el: '#watch-example',

src/guide/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Simply download and include with a script tag. `Vue` will be registered as a glo
3030

3131
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).
3232

33-
Also available on [npmcdn](https://npmcdn.com/vue/dist/vue.min.js), which will reflect the latest version as soon as it is published to npm. You can also browse the source of the npm package at [npmcdn.com/vue/](https://npmcdn.com/vue/).
33+
Also available on [unpkg](https://unpkg.com/vue/dist/vue.min.js), which will reflect the latest version as soon as it is published to npm. You can also browse the source of the npm package at [unpkg.com/vue/](https://unpkg.com/vue/).
3434

3535
### CSP environments
3636

src/guide/transitioning-state.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ All of these are either already stored as raw numbers or can be converted into n
1818
Watchers allow us to animate changes of any numerical property into another property. That may sound complicated in the abstract, so let's dive into an example using Tween.js:
1919

2020
``` html
21-
<script src="https://npmcdn.com/tween.js@16.3.4"></script>
21+
<script src="https://unpkg.com/tween.js@16.3.4"></script>
2222

2323
<div id="animated-number-demo">
2424
<input v-model.number="number" type="number" step="20">
@@ -54,7 +54,7 @@ new Vue({
5454
```
5555

5656
{% raw %}
57-
<script src="https://npmcdn.com/tween.js@16.3.4"></script>
57+
<script src="https://unpkg.com/tween.js@16.3.4"></script>
5858
<div id="animated-number-demo" class="demo">
5959
<input v-model.number="number" type="number" step="20">
6060
<p>{{ animatedNumber }}</p>
@@ -90,8 +90,8 @@ new Vue({
9090
When you update the number, the change is animated below the input. This makes for a nice demo, but what about something that isn't directly stored as a number, like any valid CSS color for example? Here's how we could accomplish this with the addition of Color.js:
9191

9292
``` html
93-
<script src="https://npmcdn.com/tween.js@16.3.4"></script>
94-
<script src="https://npmcdn.com/color-js@1.0.3/color.js"></script>
93+
<script src="https://unpkg.com/tween.js@16.3.4"></script>
94+
<script src="https://unpkg.com/color-js@1.0.3/color.js"></script>
9595

9696
<div id="example-7">
9797
<input
@@ -167,8 +167,8 @@ new Vue({
167167
```
168168

169169
{% raw %}
170-
<script src="https://npmcdn.com/tween.js@16.3.4"></script>
171-
<script src="https://npmcdn.com/color-js@1.0.3/color.js"></script>
170+
<script src="https://unpkg.com/tween.js@16.3.4"></script>
171+
<script src="https://unpkg.com/color-js@1.0.3/color.js"></script>
172172
<div id="example-7" class="demo">
173173
<input
174174
v-model="colorQuery"
@@ -381,7 +381,7 @@ See [this fiddle](https://jsfiddle.net/chrisvfritz/fbvusejy/) for the complete c
381381
Managing many state transitions can quickly increase the complexity of a Vue instance or component. Fortunately, many animations can be extracted out into dedicated child components. Let's do this with the animated integer from our earlier example:
382382

383383
``` html
384-
<script src="https://npmcdn.com/tween.js@16.3.4"></script>
384+
<script src="https://unpkg.com/tween.js@16.3.4"></script>
385385

386386
<div id="example-8">
387387
<input v-model.number="firstNumber" type="number" step="20"> +
@@ -456,7 +456,7 @@ new Vue({
456456
```
457457

458458
{% raw %}
459-
<script src="https://npmcdn.com/tween.js@16.3.4"></script>
459+
<script src="https://unpkg.com/tween.js@16.3.4"></script>
460460
<div id="example-8" class="demo">
461461
<input v-model.number="firstNumber" type="number" step="20"> +
462462
<input v-model.number="secondNumber" type="number" step="20"> =

src/guide/transitions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ These will override the conventional class names. This is especially useful when
328328
Here's an example:
329329

330330
``` html
331-
<link href="https://npmcdn.com/animate.css@3.5.1/animate.min.css" rel="stylesheet" type="text/css">
331+
<link href="https://unpkg.com/animate.css@3.5.1/animate.min.css" rel="stylesheet" type="text/css">
332332

333333
<div id="example-3">
334334
<button @click="show = !show">
@@ -354,7 +354,7 @@ new Vue({
354354
```
355355

356356
{% raw %}
357-
<link href="https://npmcdn.com/animate.css@3.5.1" rel="stylesheet" type="text/css">
357+
<link href="https://unpkg.com/animate.css@3.5.1" rel="stylesheet" type="text/css">
358358
<div id="example-3" class="demo">
359359
<button @click="show = !show">
360360
Toggle render

0 commit comments

Comments
 (0)