I finally got rid of this:
all that is needed is to edit Gruntfile.js at the root of the project; the task of rev is to manage image renaming; this is usually something like this:
rev: { dist: { files: { src: [ '<%= yeoman.dist %>/scripts/{,*/}*.js', '<%= yeoman.dist %>/styles/{,*/}*.css', '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp}', '<%= yeoman.dist %>/styles/fonts/*' ] } } },
You just need to delete the line that tells it to process the image folder:
rev: { dist: { files: { src: [ '<%= yeoman.dist %>/scripts/{,*/}*.js', '<%= yeoman.dist %>/styles/{,*/}*.css', '<%= yeoman.dist %>/styles/fonts/*' ] } } },
And it is done; all images will contain their original names, so no path will be updated in css, html or hbs files ... Note that the rev task is only responsible for renaming files, not for compression (for images, this is done using the imagemin task ), and so the images will be compressed anyway ...
source share