Skip to content

Commit

Permalink
Add autoprefixer to css build (go-gitea#6029)
Browse files Browse the repository at this point in the history
* Add autoprefixer to css build

* also use autoprefixer on theme files
  • Loading branch information
silverwind authored and techknowlogick committed Feb 11, 2019
1 parent d0cb5aa commit 353282e
Show file tree
Hide file tree
Showing 8 changed files with 780 additions and 535 deletions.
3 changes: 1 addition & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# http://editorconfig.org

root = true

[*]
Expand All @@ -19,7 +18,7 @@ indent_size = 4
indent_style = space
indent_size = 4

[*.{yml}]
[*.{yml,json}]
indent_style = space
indent_size = 2

Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading

0 comments on commit 353282e

Please sign in to comment.