簡體   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