datamad2017/automation/minifying/minify_js.bat

9 lines
308 B
Batchfile
Raw Permalink Normal View History

2014-07-28 21:27:01 +02:00
@echo on
set LOCAL_DIR=%~dp0
set LOCAL_DIR=%LOCAL_DIR:~0,-1%
if "%~1"=="" (set "SOURCE=..\..\js") else (set "SOURCE=%~1")
echo Optimizing js with yuicompressor
forfiles /p %SOURCE% /s /m "*.js" /c "cmd /c echo processing @path && java -jar %LOCAL_DIR%\yuicompressor-2.4.8.jar @path -o @fname.min.js"
pause