summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2019-12-06 01:33:06 +0100
committertechknowlogick <techknowlogick@gitea.io>2019-12-05 19:33:06 -0500
commit9ff5b7555913964ebc6c463b00055394c85b8689 (patch)
tree9a0275a309cbeef2e02eb543b793765bf4ec8d50 /Makefile
parentd7c52b8dce725e60adfefb7b4fb85bc0627a672e (diff)
downloadgitea-9ff5b7555913964ebc6c463b00055394c85b8689.tar.gz
gitea-9ff5b7555913964ebc6c463b00055394c85b8689.zip
Switch CSS minifier to cssnano (#9260)
This results in around 4kB saving in CSS size and also resolves with a particular issue on git bash which had issues with the format of the lessc arguments.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e5a691fcab..ffb19dab38 100644
--- a/Makefile
+++ b/Makefile
@@ -469,9 +469,9 @@ css: node-check $(CSS_DEST)
$(CSS_DEST): node_modules $(CSS_SOURCES)
npx stylelint web_src/less
- npx lessc --clean-css="--s0 -b" web_src/less/index.less public/css/index.css
- $(foreach file, $(filter-out web_src/less/themes/_base.less, $(wildcard web_src/less/themes/*)),npx lessc --clean-css="--s0 -b" web_src/less/themes/$(notdir $(file)) > public/css/theme-$(notdir $(call strip-suffix,$(file))).css;)
- npx postcss --use autoprefixer --no-map --replace public/css/*
+ npx lessc web_src/less/index.less public/css/index.css
+ $(foreach file, $(filter-out web_src/less/themes/_base.less, $(wildcard web_src/less/themes/*)),npx lessc web_src/less/themes/$(notdir $(file)) > public/css/theme-$(notdir $(call strip-suffix,$(file))).css;)
+ npx postcss --use autoprefixer --use cssnano --no-map --replace public/css/*
.PHONY: javascripts
javascripts: