js压缩

批处理
@echo off
SET JS_Folder=E:\javascript
echo 正在查找 JavaScript, CSS ...
chdir /d %JS_Folder%
for /r . %%a in (*.js *.css) do (
@echo 正在压缩 %%~a ...
@java -jar %YUIFOLDER%\yuicompressor-2.4.6.jar --charset UTF-8 %%~fa -o %%~fa
)
echo 完成!
pause & exi


你可能感兴趣的:(JavaScript)