-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Asset map not being added to index.html #37
Comments
Hey, @backspace thank you for detailed Issue :) it helped a lot. Also, I do apologize that I haven't paid enough attention to this project lately. I've checked out Can you please try out this branch and see if it will work for you? P.S I had to add |
Also, keep in mind that we currently put asset map inside vendor.js, you can check if it is there via grep vendor-___.js file
(use your vendor-hash.js file) :) |
No need to apologise! I know it can be a lot of work to maintain an addon, and you’ve already spent so much time addressing my troubles 😳 Thanks for pointing out that the asset map download is within the vendor file, that explains why I couldn’t find it in There are a lot of moving parts here; I’m only testing this via PR deployment because that’s the environment I’m targeting. If I can get it to work as desired, then I’ll add the necessary flags for different handling in other environments. |
@backspace got to a root of this... latest release and assumption to put asset map into vendor.js didn't work well, unfortunately. I've attached a git patch with changes that I've used for travis-web to make assets work, but it essentially disables SRI. I don't recommend to use it in prod for now. I will work on the next version of cli-ifa to fallback to our previous approach with index.html placeholders. |
Thanks for the further investigation! I’ve reached the end of my timebox for experimenting with this for now, but I appreciate all your support. I look forward to when I can use this to solve the longstanding dynamic assets problem. 💞 |
Any updates on this? Because for me since assetMap-{#hash}.json is loaded from inside vendor.js, whenever there is no change in vendor.js, the cached version of it will be loaded in the browser, which in turn will try to load the old assetMap-{#hash}.json file. Any help would be great. |
resolved by #40 AFAICT |
Hello again! I’ve been trying in this branch to test out integrating your promising addon into our PR deployment workflow, which will address a long-standing problem where dynamically-sourced images don’t display properly. I’m finding that the
assetMap
file isn’t being included in theindex.html
.I changed the dynamically-sourced digit images on the landing page to use the asset map, to no avail:
Here’s what it looks like on the production site, for reference:
The PR deployment is here, in case that’s helpful. If you look at the source for
index.html
, you can see the asset map isn’t loaded. Can you imagine any reason why this would be the case? I’m confused. I suspect there’s some dreadfully obvious thing I’m missing.I really look forward to being able to use your addon; while I’m aware of the limitation that dynamically-sourced images don’t load properly in PR deployments, I’m continually having to assure people that it’s a known problem when they’re looking at them to check into other changes. Thanks for your work on this!
The text was updated successfully, but these errors were encountered: