This is my html:
<img src="../images/zulazlogo.png" alt="image1" >
However after running grunt build the image name is:
5cadd58e.zulazlogo.png
This is due to the grunt-rev task.
is there a way to tweak the html to include a build statement to change the file according to the new name? something like:
<img src="../images/@@hashzulalogo.png" alt="image1">
Have you tried commenting out the grunt-rev images sections?
rev: {
dist: {
files: {
src: [
'<%= yeoman.dist %>/scripts/{,*/}*.js',
'<%= yeoman.dist %>/styles/{,*/}*.css',
// '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
'<%= yeoman.dist %>/styles/fonts/*'
]
}
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With