Skip to content
This repository was archived by the owner on Jun 2, 2020. It is now read-only.

Commit 610ecdd

Browse files
committed
Downgrade Less to v2
v3 has bugs with multiple plugins; this keeps things simple and matches other IPFS website projects (which are holding back from v3 for the same reason). Licese: MIT Signed-off-by: Rob Brackett <[email protected]>
1 parent fac31cb commit 610ecdd

File tree

3 files changed

+187
-92
lines changed

3 files changed

+187
-92
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ install: node_modules resources
3939
css:
4040
# Dual calls to less because there seems to be a bug with multiple plugins in v3 :(
4141
# https://github.com/less/less.js/issues/3187
42-
$(PREPEND)$(NPMBIN)/lessc --autoprefix src/styles/main.less static-build/assets/main.css && \
43-
$(NPMBIN)/lessc --clean-css static-build/assets/main.css static-build/assets/main.css $(APPEND)
42+
$(PREPEND)$(NPMBIN)/lessc -clean-css --autoprefix src/styles/main.less static-build/assets/main.css $(APPEND)
4443

4544
build: clean install css
4645
$(PREPEND)hugo && \
@@ -49,7 +48,7 @@ build: clean install css
4948

5049
dev: css
5150
$(PREPEND)( \
52-
$(NPMBIN)/nodemon --watch src/styles --ext less,css --exec "$(NPMBIN)/lessc --autoprefix src/styles/main.less static-build/assets/main.css && $(NPMBIN)/lessc --clean-css static-build/assets/main.css static-build/assets/main.css" & \
51+
$(NPMBIN)/nodemon --watch src/styles --ext less,css --exec "$(NPMBIN)/lessc -clean-css --autoprefix src/styles/main.less static-build/assets/main.css" & \
5352
hugo server -w --port $(PORT) \
5453
)
5554

0 commit comments

Comments
 (0)