【发布时间】:2016-03-24 20:32:15
【问题描述】:
从package.json 中获取以下脚本部分:
"scripts":{
"sass:watch": "npm run sass -- -w ./src/public/stylesheets -r --source-map true",
"livereload": "live-reload --port 9091 ./src/**/*",
"dev:watch" : "npm run sass:watch; npm run livereload"
}
我怎样才能从 dev:watch 成功地同时运行 sass:watch 和 livereload 任务,而不会相互阻塞strong> 任务?
目前,当我运行 npm run dev:watch sass:watch 会阻止 livereload。
如果我对它们重新排序,也会出现同样的问题。
【问题讨论】:
-
顺便说一句,
live-reload是哪个?有一个 this 似乎没有 npmrun。还是我错过了什么..
标签: node.js npm livereload node-sass