Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace npmcdn.com with unpkg.com #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions public/js/systemjs.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
// map tells the System loader where to look for things
var map = {
'app': 'app',
'@angular': '//npmcdn.com/@angular', // sufficient if we didn't pin the version
'angular2-in-memory-web-api': '//npmcdn.com/angular2-in-memory-web-api', // get latest
'rxjs': '//npmcdn.com/[email protected]',
'ts': '//npmcdn.com/[email protected]/lib/plugin.js',
'typescript': '//npmcdn.com/[email protected]/lib/typescript.js',
'@angular': '//unpkg.com/@angular', // sufficient if we didn't pin the version
'angular2-in-memory-web-api': '//unpkg.com/angular2-in-memory-web-api', // get latest
'rxjs': '//unpkg.com/[email protected]',
'ts': '//unpkg.com/[email protected]/lib/plugin.js',
'typescript': '//unpkg.com/[email protected]/lib/typescript.js',
};

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

// Add package entries for angular packages
Expand Down
8 changes: 4 additions & 4 deletions views/app.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

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

<script src="//npmcdn.com/[email protected]?main=browser"></script>
<script src="//npmcdn.com/[email protected]"></script>
<script src="//npmcdn.com/[email protected]/dist/system.src.js"></script>
<script src="//unpkg.com/[email protected]?main=browser"></script>
<script src="//unpkg.com/[email protected]"></script>
<script src="//unpkg.com/[email protected]/dist/system.src.js"></script>

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