diff options
author | silverwind <me@silverwind.io> | 2019-12-06 01:33:06 +0100 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-12-05 19:33:06 -0500 |
commit | 9ff5b7555913964ebc6c463b00055394c85b8689 (patch) | |
tree | 9a0275a309cbeef2e02eb543b793765bf4ec8d50 /Makefile | |
parent | d7c52b8dce725e60adfefb7b4fb85bc0627a672e (diff) | |
download | gitea-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-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: |