jaywcjlove / svgtofont

Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
https://jaywcjlove.github.io/svgtofont
MIT License
520 stars 82 forks source link

How to run with .svgtofontrc? #177

Closed scharph closed 1 year ago

scharph commented 1 year ago

I am unable to run this with the configuration file

My .svgtofontrc is located in the root folder of the nodejs project?

  "fontName": "svgtofont",
  "css": true,
  "src": "svg",
  "dist": "fonts"
}

yarn svgtofont -> prints out help and Missing required arguments: output, sources Also no option to select a custom config file, like yarn svgtofont --config/-c path/to/config/config.json

Isn't it possible to set all properties in the config file? There is also no feedback if the configfile is used?

I got it running with the typescript way and with the package.json configuration,

It would be nice for me, someone can tell me what i'm doing wrong :)

scharph commented 1 year ago

ok ..my bad ... cli execution doesnt support the config file