From d5a33cf242df21bbaa838071392e23835751c869 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Wed, 30 Jun 2021 00:47:22 +0100 Subject: [PATCH] site: fix uncss in make all --- site/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/site/Makefile b/site/Makefile index 578b7c1..324783e 100644 --- a/site/Makefile +++ b/site/Makefile @@ -2,12 +2,12 @@ all: -mkdir -p out cp index.html out/ cp -r node_modules/remixicon/fonts/remixicon.css node_modules/remixicon/fonts/remixicon.woff2 out/ - npx esbuild --bundle base.css --outfile=out/bundle.css --external:remixicon.css --minify - npx uncss index.html --stylesheets out/bundle.css > out/_bundle.css - mv out/_bundle.css out/bundle.css - npx uncss index.html --stylesheets out/remixicon.css > out/_remixicon.css - mv out/_remixicon.css out/remixicon.css npx esbuild --bundle ts/main.ts --outfile=out/main.js --minify + npx esbuild --bundle base.css --outfile=out/bundle.css --external:remixicon.css --minify + cd out && npx uncss index.html --stylesheets bundle.css > _bundle.css; cd .. + mv out/_bundle.css out/bundle.css + cd out && npx uncss index.html --stylesheets remixicon.css > _remixicon.css; cd .. + mv out/_remixicon.css out/remixicon.css cp ../static/* out/ debug: