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