Skip to content

Path issues on Windows #15

Description

@brunnerh

The SVG files are not found on Windows, unless a path is specified that is not manipulated by:

if (!/^node_modules/.test(libPath)) {
libPath = path.join("node_modules", glob);
}
if (!/\*.svg$/.test(libPath)) {
libPath = path.join(libPath, "*.svg");
}

Probably an issue with path.join using \ on Windows.

So when referencing a local directory svgs, these paths do not work ("Converted 0 icons from ..."):

../svgs
..\svgs
../svgs/*.svg
..\svgs\*.svg
node_modules/../svgs
node_modules\..\svgs\*.svg

Only this one does:

node_modules/../svgs/*.svg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions