How can I get node-sass watch and live reload to work from a single NPM script?

后端 未结 6 1430
面向向阳花
面向向阳花 2021-01-02 23:30

Taking the following scripts section from a package.json:

\"scripts\":{
    \"sass:watch\": \"npm run sass -- -w ./src/public/stylesheets -r --s         


        
6条回答
  •  隐瞒了意图╮
    2021-01-02 23:58

    Take a look at Grunt Concurrent

    This task is also useful if you need to run multiple blocking tasks like nodemon and watch at once.

提交回复
热议问题