How do I run grunt from a different folder than my root project

前端 未结 3 634
礼貌的吻别
礼貌的吻别 2021-02-03 20:15

Is there a way to tell grunt which grunt.js file to use?

I have an f:\\a\\b\\tools folder that contains grunt.cmd, node.exe,..., my actual web

3条回答
  •  终归单人心
    2021-02-03 20:51

    Since grunt 1.3 you can omit --gruntfile.

    So, instead of

    grunt --base c\my_app --gruntfile c\my_app\GruntFile.js mytask

    you can just

    grunt --base c\my_app mytask (and --base can be replaced with -b)

提交回复
热议问题