aboutsummaryrefslogtreecommitdiff
path: root/scripts/js2min
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-05-09 19:58:53 +0200
committerlonkaars <loek@pipeframe.xyz>2023-05-09 19:58:53 +0200
commit67e7e2eee2c4a09b35470711fe5ac10453841d8c (patch)
tree47c3af60cf3c7161620dc7f97a499e3af06d16b2 /scripts/js2min
parent60810d7c048102825ac656e6f840afc0e2c04835 (diff)
move posix js/css minifier to scripts dir
Diffstat (limited to 'scripts/js2min')
-rwxr-xr-xscripts/js2min10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/js2min b/scripts/js2min
new file mode 100755
index 0000000..bd14e81
--- /dev/null
+++ b/scripts/js2min
@@ -0,0 +1,10 @@
+#!/bin/sh
+export PATH="$PATH:`dirname $0`/filters"
+cat $@ |\
+ remove_double_slash_comments |\
+ to_single_line |\
+ remove_slash_star_comments |\
+ remove_tabs |\
+ remove_whitespace |\
+ trim_whitespace
+