1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/scripts/build-less.sh

23 lines
489 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
set -e
2016-01-30 00:11:31 +00:00
if [[ $BUILD_PRODUCTION ]]
then
echo ">>> WARNING: Building in Production Mode!"
fi
echo ">> Building LESS..."
lessc --silent static/src/less/style.less static/build/css/style.css
2016-02-28 22:23:44 +00:00
echo ">> Post-Processing..."
postcss -u autoprefixer -o static/build/css/style.css static/build/css/style.css
2016-01-30 00:11:31 +00:00
if [[ $BUILD_PRODUCTION ]]
then
echo ">> Compressing LESS..."
cleancss -d --s0 -o static/build/css/style.css static/build/css/style.css
fi
2016-02-28 22:22:19 +00:00
echo "> LESS Built!"