This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Instrutions | |
1.- Download fontawesom js separate files (solid, regular, brands...) | |
2.- Edit the variables accordingly | |
3.- Run the script to get the stripped js (repeat when needed) */ | |
/* USES FIND-IN-FILE */ | |
var fif = require('find-in-files'); | |
var fs = require('fs'); | |
/* CONFIG VARS */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#download and unzip https://github.com/lipis/flag-icon-css | |
cd flags/4x3 | |
mkdir result | |
convert *.svg -resize '20x13' -set filename:base "%[basename]" "%[filename:base].png" | |
glue-sprite -s ./ -o result/ --sprite-namespace "fl" --namespace "" | |
convert result/4x3.png -quality 50 result/4x3.jpg | |
sed "s|4x3.png|4x3.jpg|g" result/4x3.css | |
#img=$( base64 -w 0 result/4x3.jpg ) | |
# result css and png are in flags/4x3/result |