aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2019-02-11 07:13:30 +0100
committertechknowlogick <matti@mdranta.net>2019-02-11 01:13:30 -0500
commit353282e65880147408382ac4a44473272af53101 (patch)
tree80870b4b158170fc57fc01c7c2725241e14405cf /Makefile
parentd0cb5aa9f95888a97a6f4ac39769893da8a0cbaf (diff)
downloadgitea-353282e65880147408382ac4a44473272af53101.tar.gz
gitea-353282e65880147408382ac4a44473272af53101.zip
Add autoprefixer to css build (#6029)
* Add autoprefixer to css build * also use autoprefixer on theme files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5201e99b04..1a7d0c33e6 100644
--- a/Makefile
+++ b/Makefile
@@ -361,8 +361,10 @@ stylesheets-check: generate-stylesheets
.PHONY: generate-stylesheets
generate-stylesheets:
+ $(eval BROWSERS := "> 2%, last 2 firefox versions, last 2 safari versions")
node_modules/.bin/lessc --clean-css public/less/index.less public/css/index.css
$(foreach file, $(filter-out public/less/themes/_base.less, $(wildcard public/less/themes/*)),node_modules/.bin/lessc --clean-css public/less/themes/$(notdir $(file)) > public/css/theme-$(notdir $(call strip-suffix,$(file))).css;)
+ $(foreach file, $(wildcard public/css/*),node_modules/.bin/postcss --use autoprefixer --autoprefixer.browsers $(BROWSERS) -o $(file) $(file);)
.PHONY: swagger-ui
swagger-ui: