Skip to content

Commit

Permalink
Update rule for dist/fonts.css (webfonts)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Dec 16, 2019
1 parent f4978c3 commit c3d654e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ CLEANCSS = cleancss
# UglifyJS minifies, merges and optimizes Javascript
UGLIFYJS = uglifyjs
# webfont-dl is a tool to download web fonts from the Google Fonts API
WEBFONTDL = webfont-dl --eot=omit
WEBFONTDL = webfont-dl --eot=omit --ttf=data --woff1=data
# Pug is a templating engine
PUG = pug --pretty
# Stylus is a CSS compiler
Expand Down Expand Up @@ -134,7 +134,7 @@ dist/fonts:
$(CP) ${FONT_FILES} $@

dist/fonts.css: dist/fonts
$(WEBFONTDL) -o $@ --font-out=dist/fonts $(FONT_URLS) && sleep 1
$(WEBFONTDL) -o $@ --font-out=dist/fonts $(FONT_URLS) && wait

dist/vendor.css: ${CSS_FILES} dist/fonts.css
cat dist/fonts.css ${CSS_FILES} \
Expand Down

0 comments on commit c3d654e

Please sign in to comment.