Svgr: Silent CLI flag

Created on 18 Oct 2019  ·  4Comments  ·  Source: gregberge/svgr

🚀 Feature Proposal

I would love having a --silent flag or similar added to the CLI.

Motivation

In my current project I have +200 icons that are being generated and it's bloating my logs seeing src/images/icons/icon-name.svg -> src/components/Icon/icons/icon-name.js repeated n amount of times.

Example

“scripts“: {
  "icons“: "svgr --filename-case kebab --silent --replace-attr-values '#3A416F=currentColor' --svg-props 'viewBox=0 0 24 24' -d src/components/Icon/icons src/images/icons",
}
feature request 🙏 good first issue 🤙 v5

Most helpful comment

Yeah, nice addition!

All 4 comments

Yeah, nice addition!

Will be released in v5.

Fixed in 100147fd5dad140bf8e41d725a8c9b55ea93a354

Thanks @gregberge and @everdimension, you legends.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rj-coding picture rj-coding  ·  5Comments

1saf picture 1saf  ·  3Comments

kg-currenxie picture kg-currenxie  ·  4Comments

troch picture troch  ·  5Comments

alamothe picture alamothe  ·  6Comments