Skip to content

Commit

Permalink
use 'minify' to minify CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind authored and lafriks committed Sep 20, 2017
1 parent 0d42d7b commit ea925d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,11 @@ stylesheets-check: stylesheets

.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
node_modules/.bin/cleancss -o public/css/index.css public/css/index.css
minify -o public/css/index.css public/css/index.css

.PHONY: swagger-ui
swagger-ui:
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"license": "MIT",
"dependencies": {
"clean-css-cli": "^4.1.6",
"less": "^2.7.2"
}
}
2 changes: 1 addition & 1 deletion public/css/index.css

Large diffs are not rendered by default.

0 comments on commit ea925d8

Please sign in to comment.