You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
// []
The text was updated successfully, but these errors were encountered:
Your brace expansion pattern {png} is incorrect. If you only have png's just use *.png. If you need more use the brace expansion pattern with at least one comma: {png,jpg}.
See the test case here https://replit.com/@webketje/imagemin400
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.The text was updated successfully, but these errors were encountered: