vue-svg-loader icon indicating copy to clipboard operation
vue-svg-loader copied to clipboard

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

Open MrToxy opened this issue 5 years ago • 1 comments

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

MrToxy avatar Jul 29 '20 09:07 MrToxy

@MrToxy could you prepare a small repro?

damianstasik avatar Aug 29 '20 10:08 damianstasik