質問

I was under the impression that grunt-usemin with grunt-rev was able to step through a tree of html files and replace references to compiled assets with references to rev'd assets.

This is my grunt file and an example of what's going on:

https://gist.github.com/airtonix/8396336

Ideally what I'm aiming for is all the script and link tags in all the html be updated to point at the revved files (not just the html files in the root level)

役に立ちましたか?

解決

I think the issue is that the regex usemin has only looks in the root level of each specified directory.

Try changing the relevant regex to look in sub-directories. For example,

'views/{,*/**/}*.html'
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top