CLI version of svg-spreact
npm i -g svg-spreact-cli
svg-spreact <folder> [options]
svg-spreact ./icons --optimize true --tidy false
- Will log the output (defs
<symbols>
and refs<use>
). - Automatically copy the output into Clipboard
svg-spreact ./icons > sprite.svg
Default: ./
--tidy
-t
(boolean
) default:true
--optimize
-o
(boolean
) default:true
--prefix
-p
(string
) default: ''--suffix
-s
(string
) default: ''--classname
-c
(string
) default: ''
svg-spreact Main Package