News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Sander Marechal's Blog:
A YuiCompressorFilter for Phing
August 02, 2011 @ 09:16:37

Sander Marechal has been working with Phing in some of his recent development and has created something useful for compressing Javascript and CSS files on the deployment of your application - a YuiCompressor task.

I am going to write several useful extensions, the first of which is a YuiCompressorFilter. Phing already has support for a JavaScrip minifier in the form of the JsMinTask, but the yui-compressor is more useful. Not only does it usually compress better than JsMin, it can also compress CSS files. Also, because my YuiCompressor extension is implemented as a filter instead of a task you can do fancy things like minifying and concatenating files in a single step.

He includes both a sample of the task and it's configuration (the XML) in the post as well as a link to its source over on github.

0 comments voice your opinion now!
javascript compress phing task css


blog comments powered by Disqus

Similar Posts

Felix Geisendorfer's Blog: How to organize your CakePHP App's Javascript?

Felix Geisendorfer's Blog: The Future of ThinkingPHP.org

Pablo Viquez' Blog: How to use json_encode with ISO-8859-1 data – Part2

CodeForest.net: Obfuscate your e-mail address with PHP, JavaScript and CSS

Fabien Potencier's Blog: Parsing XML documents with CSS selectors


Community Events

Don't see your event here?
Let us know!


series api php7 interview introduction community version performance release application library extension podcast symfony2 laravel conference voicesoftheelephpant framework example opinion

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework