【问题标题】:Running Grunt with alternate config file location使用备用配置文件位置运行 Grunt
【发布时间】:2012-06-21 14:39:11
【问题描述】:

试图在工头手下运行 Grunt。理想情况下,我想将我的 gruntfile 放在 ./build 而不是 '.' 中。

我也试过在工头中通过“grunt: cd build && grunt watch”来做。

似乎无法让它工作......有没有办法做到这一点?

【问题讨论】:

    标签: node.js foreman gruntjs


    【解决方案1】:

    要在另一个位置点击 gruntfile,您只需要使用 --gruntfile 标志。

    对于你想要的目录结构:

    grunt --gruntfile ./build/grunt.js

    【讨论】:

    • 我相信这在 0.4 之后更改为 --gruntfile
    • 更新了我的答案。谢谢费利佩!
    猜你喜欢
    • 1970-01-01
    • 2012-07-24
    • 2015-12-11
    • 2017-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多