Open
Description
I'm not sure what I'm doing wrong. Here is my code. I have one .png
to test this out and it isn't working. I have tried multiple file paths, both relative and absolute. The variable that I am passing it is absolute. I am currently using Node 17.3.1.
import imagemin from "imagemin";
import imageminPngquant from "imagemin-pngquant";
import {assets} from "./paths.mjs";
async function process() {
const files = await imagemin([`${assets.images}/*.{png}`], {
destination: assets.images,
plugins: [imageminPngquant()],
});
console.log(files);
}
process();
// output:
// []
Metadata
Metadata
Assignees
Labels
No labels