Frage

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)

War es hilfreich?

Lösung

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'
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top