summaryrefslogtreecommitdiffstats
path: root/scripts/css.sh
blob: 753bc8c303c3d392d7f067a6dfb3172512a68e32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
minify="$(npm bin)/minify"
normalize="$(npm root)/normalize.css/normalize.css"
style="style.css"

# minify add a newline character at the end of its input
# we remove it using `head'
echo "
@charset \"UTF-8\";
$(cat ${normalize})
$(cat ${style})
" | ${minify} --css | head -c -1 > style.min.css