mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
DataTables: Use minified JS files (#1094)
This commit is contained in:
@ -258,6 +258,11 @@ requestAnalyzer._getPathOfBundle = function (initiator, channelHost, channelPath
|
||||
};
|
||||
}
|
||||
}
|
||||
if (bundle === 'DataTables (Bundle)') {
|
||||
if (!filename.endsWith('.min.js') && filename.endsWith('.js')) {
|
||||
filename = filename.replace('.js', '.min.js');
|
||||
}
|
||||
}
|
||||
return helpers.formatFilename(filename.endsWith('.js')
|
||||
? `${targetPath + filename}m`
|
||||
: targetPath + filename);
|
||||
|
Reference in New Issue
Block a user