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

Improved: Bundles detection

This commit is contained in:
nobody
2020-11-09 19:42:09 +01:00
parent e5df85fadb
commit 965dfaa1da
2 changed files with 10 additions and 9 deletions

View File

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