image-source-loader
Image source loader for webpack
Last updated 3 months ago by yacheng .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install image-source-loader 
SYNC missed versions from official npm registry.

image source loader for webpack

A source is an object contains: base64 uri, width and height of a image. eg: { uri: 'data:image/png;base64, iVBxxxx...', width: 2, height: 3 }

If your looking for a loader that simple encodes as base64 try base64-loader

Installation

npm install image-source-loader

Usage

const source = require("image-source!./1x1.png");

// source => {
//   uri: "data:image/png;base64,iVBORw0KGgoAAAANS...",
//   width: 1,
//   height: 1
// }

Documentation: Using loaders

Support

See ./mimes.json for currently supported extensions/mimes.
Create a Pull Request if you need more added.

Current Tags

  • 0.6.5                                ...           latest (3 months ago)

51 Versions

  • 0.6.5                                ...           3 months ago
  • 0.6.4                                ...           4 months ago
  • 0.6.3                                ...           5 months ago
  • 0.6.2                                ...           5 months ago
  • 0.6.1                                ...           6 months ago
  • 0.6.0                                ...           6 months ago
  • 0.5.4                                ...           8 months ago
  • 0.5.2                                ...           9 months ago
  • 0.5.1                                ...           9 months ago
  • 0.5.0                                ...           10 months ago
  • 0.4.20                                ...           a year ago
  • 0.4.19                                ...           a year ago
  • 0.4.18                                ...           a year ago
  • 0.4.17                                ...           a year ago
  • 0.4.16                                ...           a year ago
  • 0.4.15                                ...           a year ago
  • 0.5.0-beta                                ...           a year ago
  • 0.4.14                                ...           a year ago
  • 0.4.13                                ...           a year ago
  • 0.4.12                                ...           a year ago
  • 0.4.11                                ...           a year ago
  • 0.4.10                                ...           a year ago
  • 0.4.9                                ...           a year ago
  • 0.4.8                                ...           a year ago
  • 0.4.7                                ...           a year ago
  • 0.4.6                                ...           a year ago
  • 0.4.5                                ...           a year ago
  • 0.4.4                                ...           a year ago
  • 0.4.3                                ...           a year ago
  • 0.4.2                                ...           a year ago
  • 0.4.1                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.8                                ...           a year ago
  • 0.3.7                                ...           a year ago
  • 0.3.6                                ...           a year ago
  • 0.3.5                                ...           a year ago
  • 0.3.4                                ...           a year ago
  • 0.3.3                                ...           a year ago
  • 0.3.2                                ...           a year ago
  • 0.3.1                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.11                                ...           2 years ago
  • 0.2.10                                ...           2 years ago
  • 0.2.9                                ...           2 years ago
  • 0.2.8                                ...           2 years ago
  • 0.2.7                                ...           2 years ago
  • 0.2.6                                ...           2 years ago
  • 0.2.5                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 5
This Week 40
This Month 99
Last Day 12
Last Week 51
Last Month 268
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |