DataTables: Use minified JS files (#1094)

This commit is contained in:
nobody 2022-07-29 18:02:31 +02:00
parent 06c4afa184
commit 13ad29b86c
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
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') return helpers.formatFilename(filename.endsWith('.js')
? `${targetPath + filename}m` ? `${targetPath + filename}m`
: targetPath + filename); : targetPath + filename);

View File

@ -49,6 +49,10 @@
<li>Chromium: Remove option to change badge color for HTML filter (<a href="https://codeberg.org/nobody/LocalCDN/issues/1082">#1082</a>)</li> <li>Chromium: Remove option to change badge color for HTML filter (<a href="https://codeberg.org/nobody/LocalCDN/issues/1082">#1082</a>)</li>
<li>Chromium: Remove option to block Google Fonts (<a href="https://codeberg.org/nobody/LocalCDN/issues/1085">#1085</a>)</li> <li>Chromium: Remove option to block Google Fonts (<a href="https://codeberg.org/nobody/LocalCDN/issues/1085">#1085</a>)</li>
</ul> </ul>
<p>Mapping</p>
<ul>
<li>DataTables: Use minified JS files (<a href="https://codeberg.org/nobody/LocalCDN/issues/1094">#1094</a>)</li>
</ul>
</div> </div>
<div id="generator-section"> <div id="generator-section">
<div class="topic-label"> <div class="topic-label">