-
Notifications
You must be signed in to change notification settings - Fork 73
Allow to prepend hashes #53
Comments
Does |
Do you mean |
Im not sure what you mean exactly. Could you give a more info on the pattern? |
OK, it's not a pattern but a variable. I have a task that grabs an HTML file and finds blocks enclosed in comments: <!-- useMinAndConcat someFile.js --> and <!-- endUseMinAndConcat --> then preprocesses script tags inside the block in the preparation task. Next, other tasks generate a bundle file (concatenated, minified etc.) and put the resulting bundle in <script src="/someFile.js"></script> the path written to Now, to do the same with |
You can't map the output of |
Hmm, I guess I can try that. I'll check if all my use cases can be covered by that. |
It seems all my use cases can be solved using |
I prefer the format used by grunt-rev which prepended hashes instead of appending them. It's easier to handle as in other tasks Grunt configuration I can catch both files via prepending
{*,}
to the pattern.grunt-filerev
appends the hash before the extension so I actually need to know extensions of matched files to be able to match them both.Could you add a configuration option to prepend instead of appending? Am I missing something?
The text was updated successfully, but these errors were encountered: