Run grunt from a different directory

来源:互联网 发布:仿网易云音乐源码 编辑:程序博客网 时间:2024/06/03 19:38

http://stackoverflow.com/questions/14873356/how-do-i-run-grunt-from-a-different-folder-than-my-root-project

上面这个链接里面提供了一些提示,但是在windows下面有一些细微的改动,就是在盘符后面加一个冒号。


假设我的GruntFile.js在 c:\Users\Source\grunttest\script\GruntFile.js下,但是我需要在另外一个目录下运行Grunt,那么命令应该是:


grunt --gruntfile c:\Users\Source\grunttest\script\GruntFile.js


0 0
原创粉丝点击