See more
However, every resource that is loaded into webpack must be treated as JavaScript (this includes css, images, svgs, html, etc.). Because of this, only JavaScript is a first-class module type in webpac…
I’m going to take a quote from this StackExchange answer, because it makes sense: