From 55a612b76961abb27e352005f9605fc9cea91114 Mon Sep 17 00:00:00 2001 From: Wu Haotian <whtsky@gmail.com> Date: Wed, 13 Jun 2018 18:54:29 +0800 Subject: [PATCH] Add support for BootCDN close Synzvato/decentraleyes#293 --- core/mappings.js | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/core/mappings.js b/core/mappings.js index 63481f2..49fc0e4 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -235,7 +235,30 @@ var mappings = { 'modernizr/modernizr-{version}.': resources.modernizr, 'mootoolscore/mootools.core-{version}.': resources.mootools } - } + }, + // BootCDN + 'cdn.bootcss.com': { + '/': { + 'angular.js/{version}/angular.': resources.angular, + 'backbone.js/{version}/backbone.': resources.backbone, + 'backbone.js/{version}/backbone-min.': resources.backbone, + 'dojo/{version}/dojo.': resources.dojo, + 'ember.js/{version}/ember.min.js': resources.ember.js, + 'ext-core/{version}/ext-core.': resources.extCore, + 'jquery/{version}/jquery.': resources.jQuery, + 'jqueryui/{version}/jquery-ui.js': resources.jQueryUI, + 'jqueryui/{version}/jquery-ui.min.js': resources.jQueryUI, + 'modernizr/{version}/modernizr.': resources.modernizr, + 'mootools/{version}/mootools-yui-compressed.': resources.mootools, + 'prototype/{version}/prototype.': resources.prototypeJS, + 'scriptaculous/{version}/scriptaculous.': resources.scriptaculous, + 'swfobject/{version}/swfobject.': resources.swfobject, + 'underscore.js/{version}/underscore.': resources.underscore, + 'underscore.js/{version}/underscore-min.': resources.underscore, + 'webfont/{version}/webfont.': resources.webfont, + 'webfont/{version}/webfont_debug.': resources.webfont + } + }, }; // Geekzu Public Service [Mirror] -- GitLab