开发者

Deploying minified versions JS/CSS using Netbeans

I'm a kind of big rookie, using Netbeans 6.9 as a PHP dev tool.

Currently I do develop and test locally on my PC using XAMPP/Apache/MySQL and once done, use Netbeans "upload" facility to the production server on the web.

I was won开发者_开发知识库dering if there's a Netbeans tool capable of minifying js/CSS files on upload, or a tool to minify the whole "production" environement, on request.


Netbeans JS CSS Minify Plugin : Download From Here


Not integrated with Netbeans but will do the trick for what you want: http://code.google.com/p/minify/


I usually write a deployment script that does all these things for me: It copies the current development version to a deployment folder, filtering out files I don't need, generating the correct settings files, and a bunch of other deployment-related tasks. The result is a folder that matches the folder structure on the web server exactly; from there, all I need to do is upload everything. On *nix systems, this is even more powerful because pretty much everything is designed to be scriptable. If you adopt such a scheme, all you need is a scriptable minifier, add it to the deployment script and you're all set.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜