8
0

clean-up-svg-icons.sh 382 B

123456789101112131415
  1. #!/bin/bash
  2. # @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  3. # For licensing, see LICENSE.md.
  4. # Cleans up and optimizes SVG files using the SVGO utility.
  5. # The configuration file is located in svgo.config.json.
  6. #
  7. # Usage:
  8. # npm run clean-up-svg-icons path/to/icons/*.svg
  9. for i in "$@"
  10. do
  11. svgo --config=./scripts/svgo.config.json -i $i
  12. done