From 1d8e8d3484e1edf532e0c34edbfc9cc173dfee04 Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Sun, 13 Sep 2020 17:25:22 +0200 Subject: [PATCH] terser was not called because mime type did not match --- src/node/utils/Minify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/utils/Minify.js b/src/node/utils/Minify.js index 750aac007..aba68650f 100644 --- a/src/node/utils/Minify.js +++ b/src/node/utils/Minify.js @@ -368,7 +368,7 @@ function getFileCompressed(filename, contentType, callback) { getFile(filename, function (error, content) { if (error || !content || !settings.minify) { callback(error, content); - } else if (contentType == 'text/javascript') { + } else if (contentType == 'application/javascript') { threadsPool.queue(async ({ compressJS }) => { try { logger.info('Compress JS file %s.', filename)