Stop all processes depending on npm start…

后端 未结 1 1596
时光取名叫无心
时光取名叫无心 2021-01-21 14:41

I am starting multiple npm tasks in parallel (using &, not just in sequence &&). Thus in package.json:

\"s         


        
1条回答
  •  逝去的感伤
    2021-01-21 15:11

    Killing detached processes (that's the word…) will be a pain. One will have to look at pids, and more stuff coming your way. Not to mention cross-platform issues, if meant to work under windows...

    Easier and working:

    npm install concurrently --save
    

    and thus

    "start": "concurrently \"npm run watch-blog\" \"npm run watch-data\" \"npm run serve\"",
    

    Tested (under Ubuntu 16.04, npm 5.6).

    0 讨论(0)
提交回复
热议问题