Easily switched out for a url loader this loader can be injected directly into an img src tag
If your looking for a loader that simple encodes as base64 try base64-loader
npm install base64-image-loader
var fileAsBase64Src = ;document
See ./mimes.json for currently supported extensions/mimes.
Create a Pull Request if you need more added.