Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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.

like image 899
Riccardo Avatar asked Jul 30 '10 11:07

Riccardo


People also ask

How to create minified version of JS file?

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.

Should I minify JS?

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.

Why do we need to minify JavaScript?

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.

How JavaScript CSS minify in PHP?

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).


2 Answers

Netbeans JS CSS Minify Plugin : Download From Here

like image 149
user2650521 Avatar answered Sep 20 '22 17:09

user2650521


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

like image 32
Chris Avatar answered Sep 19 '22 17:09

Chris