GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Fixes api calls to imagemin

parent c6e45a92
......@@ -65,7 +65,7 @@ async function asyncForEach(array, callback) {
.toBuffer();
const minifiedBuffer = await imagemin.buffer(buffer, {
plugins: [imageminPngquant({quality: '65-80'})]
plugins: [imageminPngquant({quality: [0.65, 0.8]})]
});
fs.writeFileSync(targetLogo, minifiedBuffer, 'binary');
......@@ -73,4 +73,4 @@ async function asyncForEach(array, callback) {
}
await browser.close();
})();
\ No newline at end of file
})();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment