mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
Add Makefile to build CSS
This commit is contained in:
16
Makefile
Normal file
16
Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
LESS_DIR = ./static/less
|
||||
LESS_FILE = style.less
|
||||
CSS_DIR = ./static/css
|
||||
CSS_FILE = style.min.css
|
||||
CSS_TMP_FILE = tmp.css
|
||||
|
||||
|
||||
.PHONY: clean build
|
||||
|
||||
build: clean
|
||||
lessc $(LESS_DIR)/$(LESS_FILE) > $(CSS_DIR)/$(CSS_TMP_FILE)
|
||||
uglifycss $(CSS_DIR)/$(CSS_TMP_FILE) > $(CSS_DIR)/$(CSS_FILE)
|
||||
rm -f $(CSS_DIR)/$(CSS_TMP_FILE)
|
||||
|
||||
clean:
|
||||
rm -f $(CSS_DIR)/*.css
|
||||
Reference in New Issue
Block a user