From f250396ca1f34759b5b7fb405d25f2e0a71e8885 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Fri, 14 Dec 2018 17:36:16 +0000 Subject: [PATCH] Makes compiler minify JS files# --- bin/compiler | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/compiler b/bin/compiler index ec93a5bb..f56f2ad1 100755 --- a/bin/compiler +++ b/bin/compiler @@ -57,6 +57,7 @@ case "$file" in *config.h) make && sudo make install ;; *\.c) cc "$file" -o "$base" && "$base" ;; *\.py) python "$file" ;; + *\.js) cat "$file" | minify --js > "${base}.min.js" ;; #*\.go) go run "$file" ;; #*) shebangtest ;; esac