svelvg
svelvg copied to clipboard
Path issues on Windows
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
@metonym The regex fix should be unrelated to this, that was just something I noticed while looking at the code.