Add autoprefixer to css build (#6029)
* Add autoprefixer to css build * also use autoprefixer on theme files
This commit is contained in:
parent
d0cb5aa9f9
commit
353282e658
8 changed files with 841 additions and 596 deletions
2
Makefile
2
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue