aboutsummaryrefslogtreecommitdiff
path: root/_import.sh
diff options
context:
space:
mode:
Diffstat (limited to '_import.sh')
-rwxr-xr-x_import.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/_import.sh b/_import.sh
index 5762220e..3be4ac8d 100755
--- a/_import.sh
+++ b/_import.sh
@@ -20,7 +20,8 @@ do
sed -i "" 's/height="24px"//g' ${file}
sed -i "" 's/xmlns="http:\/\/www.w3.org\/2000\/svg"//g' ${file}
sed -i "" 's/<path d="M0 0h24v24H0z"\/>"//g' ${file}
- sed -i "" 's/<path stroke="red" stroke-width=".1" [^"]+\/>//g' ${file}
+ sed -i "" 's/<path stroke="red" stroke-width=".1" d="M5 1l18 18"\/>//g' ${file}
+ sed -i "" 's/<path stroke="red" stroke-width=".1" d="M3 3l18 18"\/>//g' ${file}
done
svgo -f ./new/ --pretty --disable mergePaths
@@ -32,3 +33,5 @@ do
done
cp ./new/* ./src/_icons/
+gulp optimize
+