【问题标题】:npm: How to run several "watch" scripts in one command?npm:如何在一个命令中运行多个“监视”脚本?
【发布时间】:2017-08-16 20:53:14
【问题描述】:

我在 npm 的脚本中有一个命令:"start": "gulp sass && gulp & http-server",gulp 和 http-server 都是“持有和观看”命令,所以当我使用 npm start 时,它会挂在 gulp 而不是继续执行http-server。

我怎样才能在一个命令中运行gulp 和http-server?请帮帮我

【问题讨论】:

    标签: node.js npm npm-scripts


    【解决方案1】:

    有一个包叫concurent

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-11-30
      • 1970-01-01
      • 1970-01-01
      • 2020-05-10
      • 2019-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多