From fccb32d3f80503d156972b77d0541e003e0ea072 Mon Sep 17 00:00:00 2001 From: Cassio Landim Date: Sun, 24 Jul 2016 21:35:00 -0300 Subject: [PATCH] chore(system.config.js): remove slash in front of "bundle" closes #1961 This slash before the bundles path is generating a double slash for the scripts path, e.g. http://localhost:3000/node_modules/@angular/common//bundles/common.umd.js. Some server are not happy with this double slash and redirect to 404 pages like Firebase Hosting. --- public/docs/_examples/quickstart/ts/systemjs.config.1.js | 2 +- public/docs/_examples/systemjs.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/docs/_examples/quickstart/ts/systemjs.config.1.js b/public/docs/_examples/quickstart/ts/systemjs.config.1.js index 901b8f01d0..63e2109db3 100644 --- a/public/docs/_examples/quickstart/ts/systemjs.config.1.js +++ b/public/docs/_examples/quickstart/ts/systemjs.config.1.js @@ -41,7 +41,7 @@ // Bundled (~40 requests): function packUmd(pkgName) { - packages['@angular/'+pkgName] = { main: '/bundles/' + pkgName + '.umd.js', defaultExtension: 'js' }; + packages['@angular/'+pkgName] = { main: 'bundles/' + pkgName + '.umd.js', defaultExtension: 'js' }; } // Most environments should use UMD; some (Karma) need the individual index files diff --git a/public/docs/_examples/systemjs.config.js b/public/docs/_examples/systemjs.config.js index 1921a431c0..2fb97dbfc8 100644 --- a/public/docs/_examples/systemjs.config.js +++ b/public/docs/_examples/systemjs.config.js @@ -40,7 +40,7 @@ // Bundled (~40 requests): function packUmd(pkgName) { - packages['@angular/'+pkgName] = { main: '/bundles/' + pkgName + '.umd.js', defaultExtension: 'js' }; + packages['@angular/'+pkgName] = { main: 'bundles/' + pkgName + '.umd.js', defaultExtension: 'js' }; } // Most environments should use UMD; some (Karma) need the individual index files