Skip to content

Commit 3ad9018

Browse files
committed
Add make commands for building css from sass via webpack
1 parent c454d21 commit 3ad9018

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Makefile

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: dummy clean distclean testclean docclean doc .FORCE
1+
.PHONY: dummy clean distclean testclean docclean doc cssclean sassbuild sasswatch .FORCE
22

33
dummy:
44
@echo "'make' is no longer used for deployment. See 'doc/intro/install.rst'"
@@ -32,4 +32,17 @@ doc/reference/alerttypes.rst: .FORCE
3232
echo "UID=$(shell id -u)" >> .env
3333
echo "GID=$(shell id -g)" >> .env
3434

35+
cssclean:
36+
-rm -rf python/nav/web/static/css
37+
38+
sassbuild: cssclean
39+
@if [ -f package-lock.json ]; then \
40+
(npm ci && npm run build:sass); \
41+
else \
42+
(npm install && npm run build:sass); \
43+
fi
44+
45+
sasswatch:
46+
-npm run watch:sass
47+
3548
.FORCE:

0 commit comments

Comments
 (0)