开发者

Is there any build tool available for linux that takes a web project & compresses text files, remove comments?

I am looking for a build tool that can take a dev version of a typical PHP project and can compress files such as HTML files, view files(PHP embedded in html or 开发者_如何转开发vice versa), JS & cSS files before they are deployed. I can do this for individual file using some online tools but that is time consuming. I want to automate this process. TIA!


For Java script and css you can use libraries like
Closure @ http://code.google.com/closure/compiler/ or
YUI Compressor @ http://developer.yahoo.com/yui/compressor/

These tools can be run through ant tasks and would help to clean up and make the files concise.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜