Skip to content

Commit ea925d8

Browse files
silverwindlafriks
authored andcommitted
use 'minify' to minify CSS
1 parent 0d42d7b commit ea925d8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,11 @@ stylesheets-check: stylesheets
299299

300300
.PHONY: stylesheets
301301
stylesheets:
302+
@hash minify > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
303+
$(GO) get -u github.com/tdewolff/minify/cmd/minify; \
304+
fi
302305
node_modules/.bin/lessc --no-ie-compat public/less/index.less public/css/index.css
303-
node_modules/.bin/cleancss -o public/css/index.css public/css/index.css
306+
minify -o public/css/index.css public/css/index.css
304307

305308
.PHONY: swagger-ui
306309
swagger-ui:

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"license": "MIT",
33
"dependencies": {
4-
"clean-css-cli": "^4.1.6",
54
"less": "^2.7.2"
65
}
76
}

public/css/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)