Changeset View
Changeset View
Standalone View
Standalone View
optimize-svg.sh
1 | #!/usr/bin/env bash | 1 | #!/bin/sh | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | if ! command -v svgo >/dev/null | 3 | if ! command -v svgo >/dev/null | ||
4 | then | 4 | then | ||
5 | echo "Please install svgo: npm install svgo" | 5 | echo "Please install svgo: npm install svgo" | ||
6 | exit 1 | 6 | exit 1 | ||
7 | fi | 7 | fi | ||
8 | # regarding convertStyleToAttrs, see: https://github.com/svg/svgo/issues/489 | 8 | # regarding convertStyleToAttrs, see: https://github.com/svg/svgo/issues/489 | ||
9 | # regarding convertPathData, see: https://github.com/svg/svgo/issues/490 | 9 | # regarding convertPathData, see: https://github.com/svg/svgo/issues/490 | ||
Show All 34 Lines |