1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Improved: Font Awesome (Fonts only) (#170)

This commit is contained in:
nobody
2020-11-10 16:42:28 +01:00
parent c47b926d30
commit 7edb451d17
6 changed files with 9 additions and 11 deletions

View File

@@ -158,7 +158,7 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
let bundle = targets.determineBundle(targetPath);
if (bundle !== '') {
filename = channelPath.split('/').pop();
targetPath = ( RegExp('.*\.css$').test(filename) ) ? targetPath + filename : targetPath + filename + 'm';
targetPath = ( filename.endsWith('.js') ) ? targetPath + filename + 'm' : targetPath + filename;
targetPath = helpers.formatFilename(targetPath);
}