summaryrefslogtreecommitdiffstats
path: root/scripts/build_sass.sh
blob: 5bb24d4a6c10cde78433451611a3511bceaba3b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

source "site.defaults.conf"

if [ -f "site.conf" ]; then
    source "site.conf"
fi

echo -e "\033[0;32m[COMPILE ]\033[0m ${ASSETS_DIR}css/style.scss -> ${OUTPUT_DIR}style.css"
sassc ${ASSETS_DIR}css/style.scss | node_modules/.bin/csso > "${OUTPUT_DIR}style.css"