https://github.com/jahredhope/base64-image-loader
base64 image loader for webpack
https://github.com/jahredhope/base64-image-loader
npm-package
Last synced: 3 months ago
JSON representation
base64 image loader for webpack
- Host: GitHub
- URL: https://github.com/jahredhope/base64-image-loader
- Owner: jahredhope
- License: mit
- Created: 2016-05-06T01:10:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-29T04:39:51.000Z (about 5 years ago)
- Last Synced: 2025-04-10T07:15:15.358Z (3 months ago)
- Topics: npm-package
- Language: JavaScript
- Size: 158 KB
- Stars: 11
- Watchers: 1
- Forks: 5
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# base64 image loader for webpack
[](https://greenkeeper.io/)

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](https://github.com/antelle/base64-loader)
## Installation
`npm install base64-image-loader`
## Usage
``` javascript
var fileAsBase64Src = require("base64-image!./file.png");
document.write('';
```[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)
## Support
See ./mimes.json for currently supported extensions/mimes.
Create a Pull Request if you need more added.## License
MIT (http://www.opensource.org/licenses/mit-license.php)