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 wondering 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.
To minify JavaScript, try UglifyJS. The Closure Compiler is also very effective. You can create a build process that uses these tools to minify and rename the development files and save them to a production directory.
It is important to minify your CSS and minimise JavaScript files so they can load faster on your web pages. There are many reasons why you should minify your CSS and JavaScript: Reduce file size: The more code there is in a file, the larger it will be. Minified code is usually much smaller than the original version.
Minification is the process of minimizing code and markup in your web pages and script files. It's one of the main methods used to reduce load times and bandwidth usage on websites. Minification dramatically improves site speed and accessibility, directly translating into a better user experience.
To compress Javascript code we recommend you to use Squeeze. Squeeze shrinks, compresses, minifies and mangles Javascript code. It's a single PHP class that has been developed, maintained and thoroughly tested since 2003 on major JavaScript frameworks (e.g. jQuery).
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With