YUI compressor - compress multiple input files into one output file [duplicate]

时光毁灭记忆、已成空白 提交于 2019-12-07 12:53:48

问题


Possible Duplicate:
How can I combine and compress multiple script and css files for production use?

I would like to compress multiple javascript files into one minified file. I'm using YUI Compressor. On their page it says that it can do it like so (their example uses css files but I replaced it with js):

java -jar yuicompressor.jar -o '.js$:-min.js' *.js 

When I try to execute this I get an empty file named .js$

What am I missing?


回答1:


The following works for me: java -jar yuicompressor.jar *.js > combined.js



来源:https://stackoverflow.com/questions/13957748/yui-compressor-compress-multiple-input-files-into-one-output-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!