13 lines
401 B
Bash
Executable file
13 lines
401 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
if ! which sass > /dev/null 2>&1; then
|
|
echo "No sass compiler found in \$PATH"
|
|
exit 1
|
|
else
|
|
options="--no-cache --scss -r./shim.rb --sourcemap=none"
|
|
mkdir -p dist/
|
|
sass ${options} --style expanded src/tail.scss dist/tail.css
|
|
sass ${options} --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
|