From d2dd8aca869535eae62a8376a3060aa4d2ce256e Mon Sep 17 00:00:00 2001 From: esquizo Date: Sun, 14 Jun 2026 10:18:36 -0300 Subject: bundling de css usando o esbuild --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6371769..bd13903 100644 --- a/Makefile +++ b/Makefile @@ -15,10 +15,10 @@ RSS = blog/index.rss URL ?= http://localhost:8000 -all: $(PAGES) blog/index.rss +all: $(PAGES) blog/index.rss static/style.css clean: - rm -f $(PAGES) $(RSS) dist.tar.gz + rm -f $(PAGES) $(RSS) dist.tar.gz static/style.css dist: all tar -cv static $(RSS) $(PAGES) | gzip > dist.tar.gz @@ -30,6 +30,9 @@ blog/index.rss: blog/posts.csv blog/index.html: blog/posts.csv templates/base.m4 m4 -DPAGECONTENT="$$(./csv2index.sh /blog < $<)" templates/base.m4 > $@ +static/style.css: style.css styles/base.css styles/navbar.css styles/scanlines.css + esbuild style.css --bundle --minify --outfile=static/style.css + %.html: %.md templates/base.m4 m4 -DPAGECONTENT="$$(./genpage.sh < $<)" templates/base.m4 > $@ -- cgit v1.2.3