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-scss.sh

21 lines
494 B
Bash
Raw Normal View History

2016-05-14 12:27:05 +01:00
#!/usr/bin/env bash
set -e
2016-05-17 18:12:47 +01:00
if [ "$NODE_ENV" = "production" ]
2016-05-16 18:20:16 +01:00
then
echo ">>> WARNING: Building in Production Mode!"
fi
2016-05-14 12:27:05 +01:00
2016-05-16 18:20:16 +01:00
echo ">> Building SCSS..."
2016-11-24 15:07:22 +00:00
node-sass static/src/scss/index.scss static/build/css/index.css --source-map-embed
2016-05-14 12:27:05 +01:00
2016-05-16 18:20:16 +01:00
echo ">> Post-Processing..."
2016-11-24 15:07:22 +00:00
postcss -u autoprefixer -o static/build/css/index.css static/build/css/index.css
2016-05-16 18:20:16 +01:00
2016-05-17 18:12:47 +01:00
if [ "$NODE_ENV" = "production" ]
2016-05-16 18:20:16 +01:00
then
echo ">> Compressing CSS..."
2016-11-24 15:07:22 +00:00
cleancss -d --s0 -o static/build/css/index.css static/build/css/index.css
2016-05-16 18:20:16 +01:00
fi