This uses UglifyJS to create minified files.
# python-software-properties is needed to use add-apt-repository
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
Bootstrap requires a specific uglifyjs
version that works with bootstrap:
sudo npm install uglify-js@1 -g
To minify bootstrap Joomla files:
uglifyjs -nc media/jui/js/bootstrap.js > media/jui/js/bootstrap.min.js