base64-dataurl-loader
v1.0.3
Published
handle file return DataURL
Downloads
12
Maintainers
Readme
base64-dataurl-loader for webpack
use base64-dataurl-loader handle image return DataURL
Installation
npm install base64-dataurl-loader
Usage
webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.(png|jpe?g|gif)$/i,
use: {
loader: 'base64-dataurl-loader'
}
}
]
},
};
build
yarn build
test
yarn test