Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have the big project developed in the javascript framework. Hence its necessary to minify all the js so as the speed may enhance.

Please tell which js minifier software will best option?

share|improve this question

closed as off-topic by Capt.Nemo, guntbert, Braiam, Seth, blade19899 Feb 21 at 1:12

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Capt.Nemo, Seth, blade19899
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 3 down vote accepted

You can use the Closure Tools project. It is an effort by Google engineers to open source the tools used in many of Google's sites and web applications for use by the wider Web development community.

you can use it from:

Closure Tools — Google Developers

documentation could be found:

Closure Compiler Documentation - Closure Tools — Google Developers


If you want an Ubuntu application you can use yui-compressor.This is not the best option but it's probably the easiest. It's JavaScript/CSS minifier.

you can install it by:

sudo apt-get install yui-compressor

You can run yui-compressor myfile.js and it'll do all for you :)

share|improve this answer
    
I have installed the "yui-compressor". But I want to know the command which compress the all files in folder and it's subfolders too. I able to do it for files exist in folder but it is not in subfolder. Do you have any solution? –  PanKajBadukale Feb 18 at 8:46

Not the answer you're looking for? Browse other questions tagged or ask your own question.