diff options
author | silverwind <me@silverwind.io> | 2019-02-11 07:13:30 +0100 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-02-11 01:13:30 -0500 |
commit | 353282e65880147408382ac4a44473272af53101 (patch) | |
tree | 80870b4b158170fc57fc01c7c2725241e14405cf /Makefile | |
parent | d0cb5aa9f95888a97a6f4ac39769893da8a0cbaf (diff) | |
download | gitea-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-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |