Move livereload to an external script and remove from express.
Developers have to use the livereload plugin in their web browser now.
This commit is contained in:
parent
9e379c835c
commit
cd0e4b1acf
5 changed files with 6 additions and 9 deletions
|
@ -2,6 +2,5 @@
|
|||
|
||||
npm run build
|
||||
NODE_ENV=test concurrently \
|
||||
"npm run livereload" \
|
||||
"npm run watch:client" \
|
||||
"npm start"
|
||||
|
|
3
scripts/watch/client/livereload.sh
Executable file
3
scripts/watch/client/livereload.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
livereload client/angular -e scss
|
|
@ -3,5 +3,5 @@
|
|||
cd client || exit -1
|
||||
|
||||
concurrently \
|
||||
"node-sass -w --include-path node_modules/bootstrap-sass/assets/stylesheets/ stylesheets/application.scss stylesheets/index.css client/angular/**/ client/angular/**/**" \
|
||||
"node-sass -w --include-path node_modules/bootstrap-sass/assets/stylesheets/ stylesheets/application.scss stylesheets/index.css" \
|
||||
"node-sass -w angular/ --output angular/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue