Skip to content

Commit

Permalink
minify assets
Browse files Browse the repository at this point in the history
  • Loading branch information
ii8 committed Oct 26, 2023
1 parent 7e675b9 commit bf7f913
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ jobs:
chmod +x tailwindcss-linux-x64
mv tailwindcss-linux-x64 /usr/local/bin/tailwindcss
- run: apt-get install minify

- run: make benchmark
- run: make
- run: make minify

- uses: actions/upload-pages-artifact@v2
with:
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit bf7f913

Please sign in to comment.