簡體   English   中英

npm:如何在一個命令中運行多個“監視”腳本?

[英]npm: How to run several “watch” scripts in one command?

我在npm的腳本中有一個命令: "start": "gulp sass && gulp & http-server"gulphttp-server都是'holding and watching'命令,所以當我使用npm start ,它將掛在gulp ,不要繼續執行http-server

我如何僅用一個命令即可運行gulphttp-server 請幫我

有一個叫做concurent的包

concurrently --kill-others "grunt" "http-server"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM