Skip to content

Commit 353282e

Browse files
silverwindtechknowlogick
authored andcommitted
Add autoprefixer to css build (#6029)
* Add autoprefixer to css build * also use autoprefixer on theme files
1 parent d0cb5aa commit 353282e

File tree

8 files changed

+780
-535
lines changed

8 files changed

+780
-535
lines changed

.editorconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# http://editorconfig.org
2-
32
root = true
43

54
[*]
@@ -19,7 +18,7 @@ indent_size = 4
1918
indent_style = space
2019
indent_size = 4
2120

22-
[*.{yml}]
21+
[*.{yml,json}]
2322
indent_style = space
2423
indent_size = 2
2524

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,10 @@ stylesheets-check: generate-stylesheets
361361

362362
.PHONY: generate-stylesheets
363363
generate-stylesheets:
364+
$(eval BROWSERS := "> 2%, last 2 firefox versions, last 2 safari versions")
364365
node_modules/.bin/lessc --clean-css public/less/index.less public/css/index.css
365366
$(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;)
367+
$(foreach file, $(wildcard public/css/*),node_modules/.bin/postcss --use autoprefixer --autoprefixer.browsers $(BROWSERS) -o $(file) $(file);)
366368

367369
.PHONY: swagger-ui
368370
swagger-ui:

0 commit comments

Comments
 (0)