Toshaan Bharvani
7 years ago
commit
d1c193550e
1 changed files with 16 additions and 0 deletions
@ -0,0 +1,16 @@ |
|||||||
|
#!Makefile |
||||||
|
|
||||||
|
HUGO=hugo |
||||||
|
|
||||||
|
.PHONY: build serve |
||||||
|
|
||||||
|
all: build |
||||||
|
|
||||||
|
build: |
||||||
|
$(HUGO) |
||||||
|
@find public/ -name '*.html' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \; |
||||||
|
@find public/ -name '*.css' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \; |
||||||
|
@find public/ -name '*.js' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \; |
||||||
|
|
||||||
|
serve: |
||||||
|
$(HUGO) server --disableFastRender |
Loading…
Reference in new issue