【问题标题】:grunt concat_css disable outputgrunt concat_css 禁用输出
【发布时间】:2013-11-05 10:36:59
【问题描述】:

有谁能告诉我如何禁用 concat css 输出?

 Running "concat_css:main" (concat_css) task
[ 'tmp/styles/custom/style.css',
  'tmp/styles/custom/style.pref.css' ] 'tmp/styles/custom.min.css'
{ path: 'tmp/styles/custom/style.css',
  css: '/ =================================\n    MIXINS\n==================================== /\n/ =================================\n    COMPONENTS / FRAMEWORKS\n==================================== /\nmeta.foundation-mq-small {\n  font-family: "only screen and (min-width: 768px)";\n  width: 768px;\n}\n\nmeta.foundation-mq-medium {\n  font-family: "only screen and (min-width:1280px)";\n  width: 1280px;\n}\n\nmeta.foundation-mq-large {\n  font-family: "only screen and (min-width:1440px)";\n  width: 1440px;\n}\n\n,\n*:before,\n*:after {\n  -moz-box-sizing: border-box;\n  -webkit-box-sizing: border-box;\n  box-sizing: border-box;\n}\n\nhtml,\nbody {\n  font-size: 100%;\n}\n\nbody {\n  background: white;\n  color: #222222;\n  padding: 0;\n  margin: 0;\n  font-family: "Helvetica Neue", "Helvetica", 

提前感谢

【问题讨论】:

  • 你能附上 grunt 文件吗
  • 您是要禁用任务还是仅禁用输出?您正在运行哪些繁重的任务?
  • css_concat 任务,我想禁用输出。当任务运行时,它会输出 css,我想禁用它

标签: css gruntjs concat


【解决方案1】:

我检查了你的项目并执行了 grunt 目标在这两种情况下 gruntgrunt concat_css 我没有得到任何详细级别的输出。

以下是我在控制台中看到的消息。

Running "concat_css:vendor" (concat_css) task
[] 'tmp/styles/vendor.min.css'
File "tmp/styles/vendor.min.css" created.

Running "concat_css:main" (concat_css) task
[] 'tmp/styles/custom.min.css'
File "tmp/styles/custom.min.css" created.

Done, without errors.

Elapsed time
loading tasks    2s
concat_css:main  15ms
Total            2s

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多