【发布时间】:2014-05-15 06:02:05
【问题描述】:
有没有办法在 Grunt 中指定文件依赖项? IE。如果我有:
global/page.jade
project/index.jade -- includes global/page.jade
project/about.jade -- includes global/page.jade
project/test.jade
我更改了global/page.jade,然后我想重新编译project/index|about.jade。我检查了插件,但找不到任何可以提供该功能的东西。
【问题讨论】:
-
你在用什么任务?
-
@AllanKimmerJensen 我正在使用
grunt-contrib-jade并遇到同样的问题。我的gruntfile在这里:gist.github.com/Grawl/11396423 -
我在
grunt-cotrib-jaderepo 提出了一个问题,目前还没有答案。 github.com/gruntjs/grunt-contrib-jade/issues/100 -
不要依赖jade,试试grunt-contrib-watch todo recompile?
-
在第 63 行尝试将
'newer:jade'更改为'jade',这应该编译所有的翡翠模板,而不仅仅是更改的那个。
标签: dependencies gruntjs recompile