Skip to content

Commit 976ab1f

Browse files
Replace npmcdn.com with unpkg.com
1 parent 74ea468 commit 976ab1f

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
<!-- 1. Load libraries -->
1010
<!-- Polyfill(s) for older browsers -->
11-
<script src="https://npmcdn.com/core-js/client/shim.min.js"></script>
11+
<script src="https://unpkg.com/core-js/client/shim.min.js"></script>
1212

13-
<script src="https://npmcdn.com/zone.js@0.6.12?main=browser"></script>
14-
<script src="https://npmcdn.com/reflect-metadata@0.1.3"></script>
15-
<script src="https://npmcdn.com/systemjs@0.19.27/dist/system.src.js"></script>
13+
<script src="https://unpkg.com/zone.js@0.6.12?main=browser"></script>
14+
<script src="https://unpkg.com/reflect-metadata@0.1.3"></script>
15+
<script src="https://unpkg.com/systemjs@0.19.27/dist/system.src.js"></script>
1616

1717
<!-- 2. Configure SystemJS -->
1818
<script src="systemjs.config.js"></script>

systemjs.config.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
var map = {
1515
'app': 'app',
1616

17-
'@angular': 'https://npmcdn.com/@angular', // sufficient if we didn't pin the version
18-
'@angular/router': 'https://npmcdn.com/@angular/router' + routerVer,
19-
'@angular/forms': 'https://npmcdn.com/@angular/forms' + formsVer,
20-
'@angular/router-deprecated': 'https://npmcdn.com/@angular/router-deprecated' + routerDeprecatedVer,
21-
'angular2-in-memory-web-api': 'https://npmcdn.com/angular2-in-memory-web-api', // get latest
22-
'rxjs': 'https://npmcdn.com/rxjs@5.0.0-beta.6',
23-
'ts': 'https://npmcdn.com/plugin-typescript@4.0.10/lib/plugin.js',
24-
'typescript': 'https://npmcdn.com/typescript@1.9.0-dev.20160409/lib/typescript.js',
17+
'@angular': 'https://unpkg.com/@angular', // sufficient if we didn't pin the version
18+
'@angular/router': 'https://unpkg.com/@angular/router' + routerVer,
19+
'@angular/forms': 'https://unpkg.com/@angular/forms' + formsVer,
20+
'@angular/router-deprecated': 'https://unpkg.com/@angular/router-deprecated' + routerDeprecatedVer,
21+
'angular2-in-memory-web-api': 'https://unpkg.com/angular2-in-memory-web-api', // get latest
22+
'rxjs': 'https://unpkg.com/rxjs@5.0.0-beta.6',
23+
'ts': 'https://unpkg.com/plugin-typescript@4.0.10/lib/plugin.js',
24+
'typescript': 'https://unpkg.com/typescript@1.9.0-dev.20160409/lib/typescript.js',
2525
};
2626

2727
//packages tells the System loader how to load when no filename and/or no extension
@@ -44,7 +44,7 @@
4444
// Add map entries for each angular package
4545
// only because we're pinning the version with `ngVer`.
4646
ngPackageNames.forEach(function(pkgName) {
47-
map['@angular/'+pkgName] = 'https://npmcdn.com/@angular/' + pkgName + ngVer;
47+
map['@angular/'+pkgName] = 'https://unpkg.com/@angular/' + pkgName + ngVer;
4848
});
4949

5050
// Add package entries for angular packages

0 commit comments

Comments
 (0)