20 lines
494 B
Bash
Executable file
20 lines
494 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
if [ "$NODE_ENV" = "production" ]
|
|
then
|
|
echo ">>> WARNING: Building in Production Mode!"
|
|
fi
|
|
|
|
echo ">> Building SCSS..."
|
|
node-sass static/src/scss/index.scss static/build/css/index.css --source-map-embed
|
|
|
|
echo ">> Post-Processing..."
|
|
postcss -u autoprefixer -o static/build/css/index.css static/build/css/index.css
|
|
|
|
if [ "$NODE_ENV" = "production" ]
|
|
then
|
|
echo ">> Compressing CSS..."
|
|
cleancss -d --s0 -o static/build/css/index.css static/build/css/index.css
|
|
fi
|