8000 GitHub - zzhtom/base64-dataurl-loader: handle file return DataURL
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zzhtom/base64-dataurl-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base64-dataurl-loader for webpack

NPM

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

Other references

base64-loader
base64-image-loader

About

handle file return DataURL

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0