22 lines
489 B
Bash
Executable file
22 lines
489 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
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
|
|
|
|
echo ">> Post-Processing..."
|
|
postcss -u autoprefixer -o static/build/css/style.css static/build/css/style.css
|
|
|
|
if [[ $BUILD_PRODUCTION ]]
|
|
then
|
|
echo ">> Compressing LESS..."
|
|
cleancss -d --s0 -o static/build/css/style.css static/build/css/style.css
|
|
fi
|
|
|
|
echo "> LESS Built!"
|