vue-svg-loader
vue-svg-loader copied to clipboard
Webpack magic comments don't take effect. Images don't get cached after first request
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 could you prepare a small repro?