I was learning webpack and I came across loaders,The defination of loaders says that it transform your code,so that it can be included inside the javascript bundle.
But,How html-loader works?
The html-loader defination says that it exports html as String (What does it mean).
it also says that every loadable attributes (for example <img src="image.png" is imported as require('./image.png'),and you may need to specify loader for images in your configuration (file-loader or url-loader), What does it mean.
I want to know, what actually html-loader do. Does it convert html into String or it just convert the img tag to require. How all this work together.
Can someone explain in detail.