What are the best practices that can be followed to minify js and css in a JSF application?
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.
I’d suggest to use YUI Compressor for this. With this tool you can minify CSS and JS files programmatically. If you’re using an IDE or any build tool which utilizes Ant under the covers (such as Eclipse), then you could use YUI Compressor Ant Task to automate minification during project build with help of Ant. Or if you’re using Maven, then you could use Minify Maven Plugin for this.