svelvg icon indicating copy to clipboard operation
svelvg copied to clipboard

Path issues on Windows

Open brunnerh opened this issue 2 years ago • 1 comments

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

https://github.com/metonym/svelvg/blob/d3f655283c9ddc3e8e9d178b637a534e0a1d7e5c/src/create-library.ts#L80-L86

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

brunnerh avatar Feb 09 '23 11:02 brunnerh

@metonym The regex fix should be unrelated to this, that was just something I noticed while looking at the code.

brunnerh avatar Feb 09 '23 20:02 brunnerh