Getting Started

Installation

You need to install it using npm or yarn.

$ npm install --save-dev blurhash-loader

or

$ yarn add --dev blurhash-loader

Usage

webpack.config.js

module.exports = {
// ...
module: {
rules: [
test: /\.(?:gif|jpe?g|png|webp)$/i,
use: [
{
loader: 'blurhash-loader',
options: {
componentX: 4,
componentY: 3
}
}
]
]
}
}