Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Abhay Rana, guntbert, Braiam, Seth, blade19899 Feb 21 '14 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." – Abhay Rana, Seth, blade19899
If this question can be reworded to fit the rules in the help center, please edit the question.

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? – user12gk21hkj Feb 18 '14 at 8:46

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