Answer the question
In order to leave comments, you need to log in
JS & CSS compression using PHP?
Hello everyone,
I need to write a script to compress (not obfuscate) JS and CSS files in my project. Part of the script is already ready, so we consider that given:
one regular JS file and one regular CSS file,
You need to get:
one compressed JS file and one compressed CSS file.
Files will need to be compressed before deploying the application, so the library should not be able to cache anything, and even performance is not fundamentally important.
When I start googling, my eyes widen. Therefore, I would very much like to listen to the advice of living people about the ease of use, the advantages and disadvantages of different solutions.
Sorry if this question has already been asked, I couldn't find it.
Thanks in advance for your help
Dmitry
Answer the question
In order to leave comments, you need to log in
code.google.com/p/minify/developer.yahoo.com/yui/compressor/ Used
minify
, really liked it.
GCC (Google Closure Compiler, not what everyone thought :) ).
Written in Java.
Why do you need PHP - xs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question