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

前端 未结 3 709
礼貌的吻别
礼貌的吻别 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 21:12

    I'll advise you to run it from your app directory because the modules are installed into nodes_modules, etc. you must move to your app directory and run grunt:

    cd f:
    cd  a\c\my_app
    grunt {yourTasks}
    

提交回复
热议问题