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

StackOverflow https://stackoverflow.com/questions/13957748

  •  10-12-2021
  •  | 
  •  

문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top