A simple SVG compressor using SVGO and gulp-svgmin.
- Clone the repository
- Open a Terminal/Command prompt at the cloned folder, and run:
npm install
- Place uncompressed SVG files in an /uncompressed/ folder in the root
- Open a Terminal/Command prompt at the cloned folder, and run:
npm run compress
This will run the Gulp SVG compression task. Alternatively, you can run the Gulp task directly with:
gulp compress
- After the task has finished, two files for each uncompressed SVG file will be exported to the /compress/ folder:
- A compressed SVG file with no path merges (under the /normal/ folder)
- A compressed SVG file with merged paths (under the /merged/ folder)