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
The SVG files are not found on Windows, unless a path is specified that is not manipulated by:
svelvg/src/create-library.ts
Lines 80 to 86 in d3f6552
Probably an issue with
path.joinusing\on Windows.So when referencing a local directory
svgs, these paths do not work ("Converted 0 icons from ..."):Only this one does: