engine.js
Function optimizejpg
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
optimizejpg(imgpath, outputPath, imgQuality, isProgressive, lossless) {
if(!lossless){
imagemin([`${imgpath}/*.jpg`, `${imgpath}/*.jpeg`], outputPath, {
use: [
imageMozJpeg({