Skip to content

Instantly share code, notes, and snippets.

@dimitar-kunchev
dimitar-kunchev / jsminify.py
Last active November 22, 2018 10:47
JS minification script with support to watch multiple files on linux; via javascript-minifier.com
#!/usr/bin/python3
"""
This script uses javascript-minifier.com to compress JS files. The way you can us it is:
To generate a .min.js version in the same folder:
jsminify.py some-file.js
To watch for changes as you edit file(s) in a directory:
jsminify.py -w ./