Skip to content
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

Webpack magic comments don't take effect. Images don't get cached after first request #129

Open
MrToxy opened this issue Jul 29, 2020 · 1 comment

Comments

@MrToxy
Copy link

MrToxy commented Jul 29, 2020

I have a component that has to switch between 4 images constantly, every time a property changes I import the specific image for it.
I noticed that the image always gets re-downloaded instead of being cached so I tried to use webpacks magic comments to prevent this from happening:

  /* webpackChunkName: "images" */
  /* webpackMode: "lazy-once" */
  /* webpackPreload: true */

however, none of the magic comments work when importing the image. I'd like to be able to cache the images after they were requested for the first time

@damianstasik
Copy link
Owner

@MrToxy could you prepare a small repro?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants