8000 Not finding any files in my src directory · Issue #400 · imagemin/imagemin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Not finding any files in my src directory #400
Open
@Spleeding1

Description

@Spleeding1

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0