HomeComputer VisionMachine LearningAI DeploymentOther PostsAbout
Minify multiple Javascript files in a folder with UglifyJS
Viet Anh Ng.
August 17, 2017
1 min

To minify multiple Javascript files, you can use Grunt. However, there is a much easier way to archive it using UglifyJS and Bashscript.

Step 1: Install UglifyJS

Step 2: Write some Bash script code to find and minify all js files in a folder

Step 3: Run script

Save script in Step 2 to a file called ‘minify-js.sh’ and run it using Terminal:

Modify this code a litte and you can use it with cleancss or other minifier.

This code help me much in deploying my webiste (a static site built with Jekyll). Hope it help someone else.


Viet Anh Ng.

AI Developer / Blogger

Hi! I'm a software engineer. I love AI technologies and currently, I'm using machine learning to build awesome software products.


Deep Learning
Computer Vision

Social Media


Related Posts

Một số kĩ thuật xử lí tiếng Việt trong Javascript
March 29, 2017
1 min
© 2020, All Rights Reserved.

Quick Links

About this siteContact

Social Media