From 9950c158a1aaa93e2ae178969c527da3ba233947 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 13 Jun 2021 16:31:40 +0100 Subject: [PATCH] move copy button to right, don't uncss when DEBUG=on keep unused css when DEBUG=on by skipping the uncss step. --- Makefile | 4 +++- html/crash.html | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0d6f705..e159a60 100644 --- a/Makefile +++ b/Makefile @@ -45,11 +45,13 @@ ifeq ($(DEBUG), on) TYPECHECK := tsc -noEmit --project ts/tsconfig.json # jank COPYTS := rm -r $(DATA)/web/js/ts; cp -r ts $(DATA)/web/js + UNCSS := cp $(DATA)/web/css/bundle.css $(DATA)/bundle.css else LDFLAGS := -s -w $(LDFLAGS) SOURCEMAP := COPYTS := TYPECHECK := + UNCSS := npx uncss $(DATA)/crash.html --csspath web/css --output $(DATA)/bundle.css endif RACE ?= off @@ -111,7 +113,7 @@ bundle-css: inline: cp html/crash.html $(DATA)/crash.html - npx uncss $(DATA)/crash.html --csspath web/css --output $(DATA)/bundle.css + $(UNCSS) npx inline-source --root $(DATA) $(DATA)/crash.html $(DATA)/crash.html rm $(DATA)/bundle.css diff --git a/html/crash.html b/html/crash.html index c34c181..aa76b3b 100644 --- a/html/crash.html +++ b/html/crash.html @@ -20,8 +20,10 @@ Create an Issue
- Full Log - Copy +
+ Full Log + Copy +