node-sass is a bit dumb with --watch
This commit is contained in:
parent
9f19116d3e
commit
7038f044b9
1 changed files with 3 additions and 0 deletions
3
watch.sh
3
watch.sh
|
@ -15,5 +15,8 @@ if [ ! -d "$DIR/node_modules" ]; then
|
||||||
npm install
|
npm install
|
||||||
fi
|
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/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/
|
$DIR/node_modules/.bin/babel --presets es2015,react --out-dir $DIR/dist/js/ --watch $DIR/js/
|
||||||
|
|
Loading…
Reference in a new issue