Add autoprefixer to css build (#6029)

* Add autoprefixer to css build

* also use autoprefixer on theme files
This commit is contained in:
silverwind 2019-02-11 07:13:30 +01:00 committed by techknowlogick
parent d0cb5aa9f9
commit 353282e658
8 changed files with 841 additions and 596 deletions

View file

@ -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: