Grunt-usemin renames fonts with revision headers, but does not update the @ font-face rule in css / sass

In generator-angular , grunt-usemin is configured to modify static assets using grunt-filerev .

The responsibility of Grunt-filerev (I looked at the code) is to rename the files. It then returns the resulting object of the renamed files.

During the build process, grunt-usemin will rename links to static files to the folders of your projects (in my project I can see this happening with imghtml templates).

Fonts, however, rename change hashes, but their links in my Sass files are not updated to reflect this, so I get 404 on all of my custom fonts.

I’ve already turned time and time into problems on GitHub, but it seems that the good people there are respectfully busy with other businesses.

Question: this is a configuration error on my part that is easy to configure, or an error in grunt-usemin.

+4
source share

All Articles