🛠 Add dev make rules
This commit is contained in:
parent
1a959a4dbf
commit
77649a5c71
1 changed files with 9 additions and 1 deletions
10
Makefile
10
Makefile
|
|
@ -1,11 +1,19 @@
|
||||||
|
ifndef dev
|
||||||
|
sass_opts = --no-source-map --style=compressed
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: build/index.html build/style.css
|
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
|
build/index.html: index.html config.toml compile.js
|
||||||
node compile.js
|
node compile.js
|
||||||
|
|
||||||
build/style.css: scss/style.scss node_modules/bootstrap/scss/_root.scss
|
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
|
node_modules/bootstrap/scss/_root.scss: package-lock.json
|
||||||
npm ci
|
npm ci
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue