shell da error de sintaxis en ubuntu
This commit is contained in:
parent
8f8c071844
commit
e8d5705df6
1 changed files with 1 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -29,10 +29,9 @@ webpack-dev-server: ## Servidor de prueba de Webpack
|
|||
|
||||
# Tomar los códigos de los íconos de este archivo y copiarlos a fa.txt
|
||||
# node_modules/font-awesome/scss/_variables.scss
|
||||
whitelist = $(shell grep -v "^#" fa.txt | sed "s/^/U+/" | tr "\n" ",")
|
||||
assets/fonts/forkawesome-webfont.woff2: fa.txt
|
||||
which glyphhanger || npm i -g glyphhanger
|
||||
glyphhanger --subset=node_modules/fork-awesome/fonts/forkawesome-webfont.ttf --formats=woff2 --whitelist=$(whitelist)
|
||||
grep -v "^#" fa.txt | sed "s/^/U+/" | tr "\n" "," | xargs -rI {} glyphhanger --subset=node_modules/fork-awesome/fonts/forkawesome-webfont.ttf --formats=woff2 --whitelist="{}"
|
||||
mv node_modules/fork-awesome/fonts/forkawesome-webfont-subset.woff2 $@
|
||||
|
||||
fa: assets/fonts/forkawesome-webfont.woff2 ## Fork Awesome
|
||||
|
|
Loading…
Reference in a new issue