kitten-loader

1.0.1 • Public • Published

##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)

/kitten-loader/

    Package Sidebar

    Install

    npm i kitten-loader

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • mikeqcp