I'm new to Vue and working off some legacy code on a Vue app and am not sure why my images aren't loading to the page. I know my component's paths to the assets are correct because I have an extension that shows the image in my code, and they're appearing there.
I feel like the problem stems from here... This is came in my vue.config.js file:
chainWebpack: (config) => {
config.module
.rule("vue")
.use("vue-loader")
.loader("vue-loader")
.tap((options) => {
options.transformAssetUrls = {
img: "src",
image: "xlink:href",
"b-avatar": "src",
"b-img": "src",
"b-img-lazy": ["src", "blank-src"],
"b-card": "img-src",
"b-card-img": "src",
"b-card-img-lazy": ["src", "blank-src"],
"b-carousel-slide": "img-src",
"b-embed": "src",
};
return options;
});
},
};```
I built my app from Vue CLI so it should have come built in with Webpack and vue-loader, right?
Are there any other dependancies that need to be added separately for this to function?
Any help is appreciated, thanks!