there are already two extensions that have functionality to combine, minify, and compress js and css files
http://www.yiiframew…sion/minscript/ after installation you can choose minifier. open /extensions/minScript/vendors/minify/min/config.php for more details
http://www.yiiframew…t-clientscript/ using Closure compiler for js, and YUIcompressor for css. Needs a working JRE on server. will need small fix, see comment