aboutsummaryrefslogtreecommitdiff
path: root/_import.sh
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2022-04-17 20:53:58 +0200
committercodecalm <codecalm@gmail.com>2022-04-17 20:53:58 +0200
commit2e7520e6a68f503d8d7bc8bcb3420cf6a91e2b16 (patch)
tree90e87f4d2fd1a1f1303fe0624e1d074501f1ea43 /_import.sh
parentRelease 1.64.0 (diff)
downloadtabler-icons-2e7520e6a68f503d8d7bc8bcb3420cf6a91e2b16.tar.xz
37 new icons: `anchor-off`, `api-off`, `atom-off`, `award-off`, `badge-off`, `badges-off`, `ballon-off`, `barrel-off`, `bath-off`, `bed-off`, `beer-off`, `box-off`, `bucket-off`, `cake-off`, `cash-off`, `coffee-off`, `container-off`, `cpu-off`, `crane-off`, `creative-commons-off`, `cross-off`, `crutches-off`, `cup-off`, `current-location-off`, `cursor-off`, `dental-off`, `device-nintendo-off`, `device-speaker-off`, `devices-pc-off`, `dialpad-off`, `diamond-off`, `directions-off`, `disabled-off`, `disc-off`, `dna-2-off`, `dna-off`, `swords`
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
+