【问题标题】:Is there a tool to measure which Grunt task takes long?是否有工具可以衡量哪个 Grunt 任务需要多长时间?
【发布时间】:2014-01-14 10:42:40
【问题描述】:

我使用Yeoman Jade Generator 和大部分默认设置。当我运行 grunt build 时,我注意到它的 htmlmin 任务需要很长时间,大约 5-10 分钟,虽然我只有一个 HTML 页面、FontAwesome 字体、几个 JavaScript 文件和 20-40 张图片,所以没什么特别的在我的文件结构中。

我想知道是否有一些 Grunt 工具可以告诉我哪个任务需要多长时间才能找出瓶颈?或者有没有其他方法可以找到潜在的缓慢原因?

【问题讨论】:

    标签: javascript gruntjs pug yeoman stylus


    【解决方案1】:

    我没有尝试过,但看起来很有用:https://github.com/sindresorhus/time-grunt。此外--verbose 模式可能会显示一些有用的信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-10-25
      • 2016-11-10
      • 2012-03-23
      • 1970-01-01
      • 2021-07-21
      • 1970-01-01
      • 2014-02-05
      相关资源
      最近更新 更多