node-sass is a bit dumb with --watch

This commit is contained in:
Alex Grintsvayg 2016-08-17 16:27:53 -04:00
parent 9f19116d3e
commit 7038f044b9

View file

@ -15,5 +15,8 @@ if [ ! -d "$DIR/node_modules" ]; then
npm install
fi
# run sass once without --watch to force update. then run with --watch to keep watching
$DIR/node_modules/.bin/node-sass --output $DIR/dist/css --sourcemap=none $DIR/scss/
$DIR/node_modules/.bin/node-sass --output $DIR/dist/css --sourcemap=none --watch $DIR/scss/ &
$DIR/node_modules/.bin/babel --presets es2015,react --out-dir $DIR/dist/js/ --watch $DIR/js/