繁体   English   中英

如何调试Grunt文件路径?

[英]How can I debug Grunt file paths?

在我的gruntFile.js中,我有这样的事情:

  coffee: {
      compileScripts: {
        expand: true,
        flatten: true,
        src: '**/*.coffee',
        dest: '.tmp/scripts',
        ext: '.js'
      }

我想看看**/*.coffee扩展到什么路径。 有没有办法将它打印到控制台,所以我可以使用星号,直到它是正确的?

根据grunt.log文档,如果使用--verbose命令行选项调用grunt,则终端中可以获得大量信息:

grunt --verbose

在实际的gruntfile中,如果有任何想要输出到控制台的内容,但只有在使用此标志时,请使用grunt.verbose而不是grunt.log。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM