1
0
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:
nobody
2022-07-29 18:02:31 +02:00
parent 06c4afa184
commit 13ad29b86c
2 changed files with 9 additions and 0 deletions

View File

@ -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);