terser was not called because mime type did not match

This commit is contained in:
webzwo0i 2020-09-13 17:25:22 +02:00 committed by John McLear
parent cedd27e4fe
commit 1d8e8d3484
1 changed files with 1 additions and 1 deletions

View File

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