diff options
Diffstat (limited to 'scripts/css.sh')
-rwxr-xr-x | scripts/css.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/css.sh b/scripts/css.sh new file mode 100755 index 0000000..753bc8c --- /dev/null +++ b/scripts/css.sh @@ -0,0 +1,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 |