开发者

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

开发者 https://www.devze.com 2023-04-08 18:42 出处:网络
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 &

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

精彩评论

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

关注公众号