From 5939b3077e9a400aea11cf19d458cc175addb491 Mon Sep 17 00:00:00 2001 From: murray Date: Thu, 26 Oct 2023 20:54:01 +0100 Subject: [PATCH] minify assets --- .github/workflows/build.yml | 3 +++ Makefile | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 12e9ff5..0d5c9e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,8 +31,11 @@ jobs: chmod +x tailwindcss-linux-x64 mv tailwindcss-linux-x64 /usr/local/bin/tailwindcss + - run: sudo apt-get install minify + - run: make benchmark - run: make + - run: make minify - uses: actions/upload-pages-artifact@v2 with: diff --git a/Makefile b/Makefile index 6cf2221..a6b1a4b 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,10 @@ Bench.gren: Makefile echo ' _ -> 0' >> Bench.gren echo >> Bench.gren +minify: main.js style.css + minify -o main.js main.js + minify -o style.css style.css + clean: rm -f main.js style.css Lang.gren langlist Bench.gren helloworld.bench @@ -37,4 +41,4 @@ benchmark/helloworld/%/result: docker build -t helloworld $(dir $@) docker run --rm helloworld cat result > $(dir $@)result -.PHONY: all clean benchmark +.PHONY: all minify clean benchmark