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

后端 未结 6 1476
面向向阳花
面向向阳花 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:56

    Use a single ampersand:

    "dev:watch" : "npm run sass:watch & npm run livereload"

    && runs tasks in serial; & in parallel.

提交回复
热议问题