-
Notifications
You must be signed in to change notification settings - Fork 1.2k
404 on images in heroku, usemin doesn't updated revved images in html partials #802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 |
+1 |
+1 |
Is not a server-related error: grunt-filerev is renaming the files, but then (usemin?) the changes are not being fixed on the css files. Until is fixed, you can comment 'filerev' in the grunt task 'build' at the Gruntfile.js, and then the filenames will not be renamed :) |
Does anyone have reproduction instructions? |
Closed due to inactivity |
+1 |
Hey all
First of all a big thanks for the great work on this full stack generator!
I noticed usemin and imagemin update the image only for index.html.
If you have any other html partial file, html remains the same and image is revved.
Steps to reproduce:
1 - add image to /client/app/main/main.html file:
<img src="assets/images/yeoman.png" alt="I'm Yeoman">
2 - run: grunt build
3 - deploy to heroku.
Image won't be found as now is called something else like: assets/images/ea0fda4e.yeoman.png
If you add the same image to index.html, Image-min does the right thing and updates the image name on index.html so no 404.
Here is my relevant config on Gruntfile:
cheers
Leonardo
The text was updated successfully, but these errors were encountered: