use latest svgo from npm

pull/2557/head
Thibault Duplessis 2017-01-22 23:13:42 +01:00
parent 490c869ecb
commit 59c7fea8b3
2 changed files with 5 additions and 3 deletions

View File

@ -4,9 +4,11 @@
# and set this variable.
#SVGCLEANER=svgcleaner/target/release/svgcleaner
SVGO=./node_modules/svgo/bin/svgo
svgo_optimize() {
echo "$1 -> $2"
svgo --quiet --multipass -i "$1" -o "$2"
$SVGO --quiet --multipass -i "$1" -o "$2"
}
svgcleaner_optimize() {
@ -22,7 +24,7 @@ svgcleaner_optimize() {
svg_optimize () {
svgcleaner_optimize "$1" "$2"
svgo --quiet --multipass -i "$2"
$SVGO --quiet --multipass -i "$2"
if [[ $SVGCLEANER ]]; then
$SVGCLEANER --multipass true "$2" "$2"

View File

@ -5,7 +5,7 @@
"devDependencies": {
"gulp-svgmin": "^1.1.1",
"map-stream": "0.0.5",
"svgo": "^0.5.0",
"svgo": "^0.7.1",
"vinyl": "^0.4.6"
},
"repository": {