async function imagesProcessing() {
compressImages(
"app/images/src/**/*",
"app/images/build/",
{ compress_force: false, statistic: true, autoupdate: true }, false,
{ jpg: { engine: "mozjpeg", command: ["-quality", "75"] } },
{ png: { engine: "pngquant", command: ["--quality=75-100", "-o"] } },
{ svg: { engine: "svgo", command: "--multipass" } },
{ gif: { engine: "gifsicle", command: ["--colors", "64", "--use-col=web"] } },
function (err, completed) {
if (err !== null) {
}
}
)
}
async function imagesProcessing() {
compressImages(
"app/images/src/**/*",
"app/images/build/",
{ compress_force: false, statistic: true, autoupdate: true }, false,
{ jpg: { engine: "mozjpeg", command: ["-quality", "75"] } },
{ png: { engine: "pngquant", command: ["--quality=75-100", "-o"] } },
{ svg: { engine: "svgo", command: "--multipass" } },
{ gif: { engine: "gifsicle", command: ["--colors", "64", "--use-col=web"] } },
function (err, completed) {
if (err !== null) {
compressImages(
"app/images/src/**/*",
"app/images/build/",
{ compress_force: false, statistic: true, autoupdate: true }, false,
{ jpg: { engine: "mozjpeg", command: false } },
{ png: { engine: "pngquant", command: false } },
{ svg: { engine: "svgo", command: false } },
{ gif: { engine: "gifsicle", command: false } },
function (err, completed) { })
}
}
)
}