mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
dont minify if file ends with .min.js #5529
This commit is contained in:
@@ -108,6 +108,12 @@ module.exports = function (Meta) {
|
||||
if (err) {
|
||||
return cb(err);
|
||||
}
|
||||
|
||||
if (filePath.endsWith('.min.js')) {
|
||||
minified = { code: buffer.toString() };
|
||||
return cb();
|
||||
}
|
||||
|
||||
try {
|
||||
minified = uglifyjs.minify(buffer.toString(), {
|
||||
fromString: true,
|
||||
|
||||
Reference in New Issue
Block a user