I’m looking to implement UglifyJS into my Ant build process to replace YUI Compressor. What are the basic steps to get started?
I’m looking to implement UglifyJS into my Ant build process to replace YUI Compressor.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After having installed uglifyjs with -g option:
Use ant like that:
On Windows you use uglifyjs.cmd, and uglifyjs on linux. You can define a conditional property if you want to keep the build.xml cross-platform.
See https://github.com/mishoo/UglifyJS/#usage for all arguments