tail.css/bin/build

14 lines
389 B
Text
Raw Normal View History

2024-01-27 06:28:15 +01:00
#!/bin/sh
2024-02-01 13:31:46 +01:00
compiler=$(which sass)
if [ ${?} -ne 0 ]; then
echo "The sass compiler was not found on \$PATH."
2024-01-27 06:28:15 +01:00
exit 1
else
2024-02-01 13:31:46 +01:00
set -e
2024-01-27 06:28:15 +01:00
mkdir -p dist/
2024-02-01 13:31:46 +01:00
${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
2024-01-27 06:28:15 +01:00
fi