tail.css/bin/build

13 lines
389 B
Bash
Executable file

#!/bin/sh
compiler=$(which sass)
if [ ${?} -ne 0 ]; then
echo "The sass compiler was not found on \$PATH."
exit 1
else
set -e
mkdir -p dist/
${compiler} --embed-source-map --style expanded src/tail.scss dist/tail.css
${compiler} --no-source-map --style compressed src/tail.scss dist/tail.min.css
gzip -9 -k -f dist/tail.css
gzip -9 -k -f dist/tail.min.css
fi