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

Commit

Permalink
Downgrade Less to v2
Browse files Browse the repository at this point in the history
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 <rob@robbrackett.com>
  • Loading branch information
Mr0grog committed Jun 11, 2018
1 parent fac31cb commit 610ecdd
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 92 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ install: node_modules resources
css:
# Dual calls to less because there seems to be a bug with multiple plugins in v3 :(
# https://github.com/less/less.js/issues/3187
$(PREPEND)$(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 $(APPEND)
$(PREPEND)$(NPMBIN)/lessc -clean-css --autoprefix src/styles/main.less static-build/assets/main.css $(APPEND)

build: clean install css
$(PREPEND)hugo && \
Expand All @@ -49,7 +48,7 @@ build: clean install css

dev: css
$(PREPEND)( \
$(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" & \
$(NPMBIN)/nodemon --watch src/styles --ext less,css --exec "$(NPMBIN)/lessc -clean-css --autoprefix src/styles/main.less static-build/assets/main.css" & \
hugo server -w --port $(PORT) \
)

Expand Down
Loading

0 comments on commit 610ecdd

Please sign in to comment.