I have a problem using grunt with filerev, usemin and angular
For the concept, let's say, we have: bar.english.PDF and bar.french.PDF
filerev works fine and I have bar.english.XXXXXXX.pdf and bar.french.XXXXX.pdf
The problem I am facing is what I call these templates. The way I implement it is as follows:
angular.module('x').directive('x', function(COUNTRY) {
return {
restrict: 'E',
replace: true,
template: '<a href="/pdf/bar.' + COUNTRY +'.pdf" >bla bla bla</a>',
link: function(scope, element, attrs) {
}
};
});
My problem in this situation is that "usemin / filerev" does not work because the file name is generated when I call it in the code. I tried many different regular expressions in usemin / filerev, selecting all or all of the href attributes. However, this did not work.
, filerev/usemin . ng-replace (ps: , ).
SO/google - , .
, , gruntfile usemin/filerev, .
- (yeoman/gruntjs ), , ? .