From 934db8e96492db45469694d1a7c68ad9c231dd8d Mon Sep 17 00:00:00 2001 From: Luiz F. A. de PrĂ¡ <luizdepra@users.noreply.github.com> Date: Tue, 21 Aug 2018 19:26:15 +0000 Subject: [PATCH] Add SCSS via Asset Pipeline (#65) --- Makefile | 30 ++---------------------------- 1 files changed, 2 insertions(+), 28 deletions(-) diff --git a/Makefile b/Makefile index fd508ba..5ca00b0 100644 --- a/Makefile +++ b/Makefile @@ -1,36 +1,10 @@ -# LESS params -LESS_DIR = ./static/less -LESS_FILE = style.less -LESS_RTL_FILE = style-rtl.less +.PHONY: demo clear -# CSS params -CSS_DIR = ./static/css -CSS_FILE = style.min.css -CSS_RTL_FILE = style-rtl.min.css -CSS_TMP_FILE = tmp.css - -define build_less - lessc $(LESS_DIR)/$(1) > $(CSS_DIR)/$(CSS_TMP_FILE) - uglifycss $(CSS_DIR)/$(CSS_TMP_FILE) > $(CSS_DIR)/$(2) - rm -f $(CSS_DIR)/$(CSS_TMP_FILE) -endef - -.PHONY: clean demo build build-ltr build-rtl - -build: clean build-ltr build-rtl - -build-ltr: - $(call build_less,$(LESS_FILE),$(CSS_FILE)) - -build-rtl: - $(call build_less,$(LESS_RTL_FILE),$(CSS_RTL_FILE)) - -demo: build +demo: mkdir -p demo/themes/coder rsync -av exampleSite/* demo rsync -av --exclude='demo' --exclude='exampleSite' --exclude='.git' . demo/themes/coder cd demo && hugo serve -D clean: - rm -f $(CSS_DIR)/*.css rm -rf demo -- Gitblit v1.10.0