Why are there 2 image files being rendered when my html and js have one image.jpg.
I’m using static Html with CSS and JSS and Webpack.
see image below:
The code is in Github here: https://github.com/kevindRuby/hello-webpack-eg1
Preferred outcome: For the image to display once on top of blinking text.
3
You have in your main.js file
import imageSrc from './image.jpg'; // Adjust the path if necessary
const imgElement = document.createElement('img');
imgElement.src = imageSrc;
imgElement.alt = 'Description of image';
document.body.appendChild(imgElement);