diff --git a/core/constants.js b/core/constants.js index 33a58eb6..9e1b5e24 100644 --- a/core/constants.js +++ b/core/constants.js @@ -201,7 +201,8 @@ const Regex = { 'BOOTSTRAP_DATEPICKER': /\/bootstrap-datepicker.*\.css/, 'FONT_AWESOME': /use\.fontawesome\.com\/fa-loader\.css/, 'FONT_AWESOME_WITH_CODE': /use\.fontawesome\.com\/[a-z0-9]{10}\.(js|css)/, - 'FONT_AWESOME_FONTS_ONLY': /\/fontawesome\/(?:\d{1,2}\.){1,3}\d{1,2}\/fonts\// + 'FONT_AWESOME_FONTS_ONLY': /\/fontawesome\/(?:\d{1,2}\.){1,3}\d{1,2}\/fonts\//, + 'BOOTSTRAP_FONTS_ONLY': /\/bootstrap\/(?:\d{1,2}\.){1,3}\d{1,2}\/fonts\// }; const Links = { diff --git a/core/mappings.js b/core/mappings.js index 9ecc4d22..6091e0f8 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -825,6 +825,7 @@ mappings.cdn = { 'bootstrap/{version}/js/bootstrap.min.': resources.bootstrapJS, 'bootstrap/{version}/css/bootstrap.min.': resources.bootstrapCSS, 'twitter-bootstrap/{version}/css/bootstrap': resources.bootstrapCSS, + 'bootstrap/{version}/fonts/': resources.bootstrapFontsOnly, 'font-awesome/{version}/css/font-awesome': resources.fontawesome, 'font-awesome/{version}/fonts/': resources.fontawesomeFontsOnly } diff --git a/core/resources.js b/core/resources.js index 4d638c7c..5bbcf788 100644 --- a/core/resources.js +++ b/core/resources.js @@ -215,6 +215,9 @@ var resources = { 'path': 'resources/bootstrap/{version}/bootstrap.min.css', 'type': 'text/css' }, + 'bootstrapFontsOnly': { + 'path': 'resources/bootstrap/fonts/' + }, // Bootstrap Daterangepicker 'bootstrapDaterangepicker': { 'path': 'resources/bootstrap-daterangepicker/{version}/daterangepicker.min.jsm', diff --git a/core/shorthands.js b/core/shorthands.js index d0316d9d..157b2747 100644 --- a/core/shorthands.js +++ b/core/shorthands.js @@ -164,6 +164,12 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) { 'path': 'resources/google-charts/loader.jsm', 'bundle': '' }; + } else if (Regex.BOOTSTRAP_FONTS_ONLY.test(channelPath)) { + return { + 'source': channelHost, + 'path': 'resources/bootstrap/fonts/' + helpers.extractFilenameFromPath(channelPath), + 'bundle': 'Bootstrap (Fonts)' + }; } else { return false; } diff --git a/modules/internal/targets.js b/modules/internal/targets.js index 269b9780..fdaa0b15 100644 --- a/modules/internal/targets.js +++ b/modules/internal/targets.js @@ -44,6 +44,8 @@ targets.determineBundle = function (path) { return 'GSAP'; } else if (Regex.FONT_AWESOME_FONTS_ONLY.test(path)) { return 'Font Awesome (Fonts)'; + } else if (Regex.BOOTSTRAP_FONTS_ONLY.test(path)) { + return 'Bootstrap (Fonts)'; } else { return ''; } diff --git a/pages/updates/updates.html b/pages/updates/updates.html index a1f50013..66082205 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -34,6 +34,7 @@
  • Updated: vue-i18n v8.22.1 -> v8.22.2 (a392f6b724)
  • Updated: highlight.js v10.3.2 -> v10.4.0 (5a10b0258f)
  • Updated: Bootstrap v3.3.7 -> v3.4.1
  • +
  • Added: Bootstrap (fonts only)