1.0.1 • Published 8 years ago

kitten-loader v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

##How it works

It replaces modules with kitten images using http://placekitten.com/ service.

##Usage

module.exports = {
  module: {
    rules: [
      {
        test: /\.jpg/,
        use: [ 'raw-loader', 'kitten-loader' ]
      }
    ]
  }
}

##Options

  • greyscale default: false Use greyscale images only
  • width default: undefined Width of the result image. Can be a number (specific value in px), 2-elements array (min, max range, value is randomized from this range), or undefined (image will have the same size as the source image)
  • height default: undefined Height of the result image. Can be a number (specific value in px), 2-elements array (min, max range, value is randomized from this range), or undefined (image will have the same size as the source image)