From 77649a5c713d14d2b49a495f52d6339454fcd311 Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Mon, 2 Jan 2023 16:44:22 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20Add=20dev=20make=20rules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 437e318..146632f 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,19 @@ +ifndef dev +sass_opts = --no-source-map --style=compressed +endif + .PHONY: all all: build/index.html build/style.css +.PHONY: clean +clean: + rm -v build/index.html build/style.css* + build/index.html: index.html config.toml compile.js node compile.js build/style.css: scss/style.scss node_modules/bootstrap/scss/_root.scss - npx sass --no-source-map --style=compressed $< $@ + npx sass $(sass_opts) $< $@ node_modules/bootstrap/scss/_root.scss: package-lock.json npm ci