diff options
author | Morlinest <Morlinest@users.noreply.github.com> | 2017-09-24 21:47:10 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-09-24 22:47:10 +0300 |
commit | 086eb62691ad6609f4b0abab2b3fffd96fc0ba58 (patch) | |
tree | d17a0fdc6a8b20afef2a6c88445371f763ee77e6 /Makefile | |
parent | fa6d7c7b994ce7fb3643f2df73a6900094d3439d (diff) | |
download | gitea-086eb62691ad6609f4b0abab2b3fffd96fc0ba58.tar.gz gitea-086eb62691ad6609f4b0abab2b3fffd96fc0ba58.zip |
Compress css with nodejs (#2580)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -289,21 +289,17 @@ public/js/index.js: $(JAVASCRIPTS) cat $< >| $@ .PHONY: stylesheets-check -stylesheets-check: stylesheets +stylesheets-check: generate-stylesheets @diff=$$(git diff public/css/index.css); \ if [ -n "$$diff" ]; then \ - echo "Please run 'make stylesheets' and commit the result:"; \ + echo "Please run 'make generate-stylesheets' and commit the result:"; \ echo "$${diff}"; \ exit 1; \ fi; -.PHONY: stylesheets -stylesheets: - @hash minify > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ - $(GO) get -u github.com/tdewolff/minify/cmd/minify; \ - fi - node_modules/.bin/lessc --no-ie-compat public/less/index.less public/css/index.css - minify -o public/css/index.css public/css/index.css +.PHONY: generate-stylesheets +generate-stylesheets: + node_modules/.bin/lessc --no-ie-compat --clean-css public/less/index.less public/css/index.css .PHONY: swagger-ui swagger-ui: |