Added: Font Awesome in netdna.bootstrapcdn.com (#131)

This commit is contained in:
nobody 2020-10-11 08:10:37 +02:00
parent 05eb20a82e
commit 4551dcc79f
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
3 changed files with 10 additions and 1 deletions

View File

@ -789,7 +789,7 @@ var mappings = {
'{version}/css/bootstrap.min.': resources.bootstrapCSS
},
'/font-awesome/': {
'{version}/css/font-awesome.css': resources.fontawesome
'{version}/css/font-awesome.': resources.fontawesome
}
},
// Font Awesome CDN

View File

@ -108,6 +108,14 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
'path': 'resources/object-assign/4.1.1/object-assign.min.jsm',
'bundle': ''
};
} else if ((channelHost + channelPath) === 'netdna.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css') {
// This CDN delivers 'Font Awesome v4.7.0' as latest version
return {
'source': channelHost,
'versionRequested': '4.7.0',
'path': 'resources/fontawesome/4.7.0/css/font-awesome.min.css',
'bundle': ''
};
} else {
return false;
}

View File

@ -30,6 +30,7 @@
<li>Added: clipboard.js in cdn.jsdelivr.net (<a href="https://codeberg.org/nobody/LocalCDN/issues/128">#128</a>)</li>
<li>Improved: Handling of single version number (<a href="https://codeberg.org/nobody/LocalCDN/issues/129">#129</a>)</li>
<li>Added: Font Awesome in cdn.jsdelivr.net (<a href="https://codeberg.org/nobody/LocalCDN/issues/130">#130</a>)</li>
<li>Added: Font Awesome in netdna.bootstrapcdn.com (<a href="https://codeberg.org/nobody/LocalCDN/issues/131">#131</a>)</li>
</ul>
<div id="generator-section">
<div class="topic-label">