datamad2017/automation/images/svgo.bat

7 lines
192 B
Batchfile
Raw Normal View History

2014-07-28 21:27:01 +02:00
@echo on
if "%~1"=="" (set "SOURCE=..\..\img") else (set "SOURCE=%~1")
echo Optimizing SVG with svgo
forfiles /p %SOURCE% /s /m "*.svg" /c "cmd /c echo processing @path && svgo @path"
pause