【问题标题】:What is the difference between grunt-connect and grunt-contrib-connect?grunt-connect 和 grunt-contrib-connect 有什么区别?
【发布时间】:2017-03-02 23:05:02
【问题描述】:

我发现问题源于混淆 grunt-connectgrunt-contrib-connect(参见 grunt connect port option ignoredgrunt watch & connect

鉴于它们的相似性和相互冲突的性质,有人可以描述它们的句法差异以及任何功能差异吗?

【问题讨论】:

    标签: gruntjs grunt-contrib-connect grunt-connect


    【解决方案1】:

    grunt-connect

    • 当您想无限期地运行服务器时,例如在 Web 服务器上(注意:这不是 grunt 的用途,而是使用 grunt 来处理文件,然后使用 nodejs 或 apache HTTP 服务器之类的东西,以托管已处理的文件)。

    grunt-contrib-connect

    • 当您想要启动 Web 服务器以供 其他 grunt 任务使用时。

    grunt-serve

    • 这类似于grunt-connect,也是我在my projects 中使用的。

    【讨论】:

    • 谢谢你的回答。
    猜你喜欢
    • 2015-01-25
    • 2017-06-12
    • 1970-01-01
    • 2014-11-19
    • 1970-01-01
    • 1970-01-01
    • 2013-12-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多