move copy button to right, don't uncss when DEBUG=on

keep unused css when DEBUG=on by skipping the uncss step.
This commit is contained in:
Harvey Tindall
2021-06-13 16:31:40 +01:00
parent 21125033ff
commit 9950c158a1
2 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -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