From aeef95ae52a73544681b45e387f7dd580e88e011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20L=2E=20=C5=A0ijanec?= Date: Tue, 28 Apr 2020 22:53:07 +0200 Subject: delam. --- test/jsmin-test.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/jsmin-test.c (limited to 'test') diff --git a/test/jsmin-test.c b/test/jsmin-test.c new file mode 100644 index 0000000..b6c4a20 --- /dev/null +++ b/test/jsmin-test.c @@ -0,0 +1,12 @@ +#include +#include +#include "jsmin.c" + +extern int main(int argc, char* argv[]) { + if(argc <= 1) { + printf("usage: %s source.js output.min.js\n", argv[0]); + return 1; + } + minify_js(argv[1], argv[2]); + return 0; +} -- cgit v1.2.3