Add option to watch for changes to css

This commit is contained in:
Brian Duggan
2018-05-23 11:49:05 -04:00
parent 4bd711aace
commit 2a9ade8da0
2 changed files with 17 additions and 2 deletions

13
gen-css
View File

@@ -1,5 +1,14 @@
#!/bin/sh -x
#!/bin/sh
opts=$1
cp -a node_modules/uswds/dist/fonts static/
sass scss/atat.scss > static/assets/atat.css
if [ "$opts" == "--watch" ]; then
set -x
sass --watch scss/atat.scss:static/assets/atat.css
else
set -x
sass scss/atat.scss > static/assets/atat.css
fi