https://github.com/antelle/base64-loader
Base64 file loader for webpack
https://github.com/antelle/base64-loader
loader webpack
Last synced: 6 months ago
JSON representation
Base64 file loader for webpack
- Host: GitHub
- URL: https://github.com/antelle/base64-loader
- Owner: antelle
- Created: 2015-09-06T16:54:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-06T16:56:24.000Z (over 9 years ago)
- Last Synced: 2024-12-12T03:48:22.509Z (6 months ago)
- Topics: loader, webpack
- Language: JavaScript
- Size: 109 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# base64 file loader for webpack
## Installation
`npm install base64-loader`
## Usage
``` javascript
var fileContent = require("base64!./file.txt");
// => returns file.txt content as base64 string
```[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)
## License
MIT (http://www.opensource.org/licenses/mit-license.php)