From 84a8526a9b6e0477ac65778ef10ff060e4feeba4 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