1.0.0 • Published 6 years ago

tinypng-webpack-loader v1.0.0

Weekly downloads
8
License
ISC
Repository
github
Last release
6 years ago
npm install --save-dev tinypng-webpack-loader

Compress images size is a good way to improve page load speed,as the png format images, we can use Tinypng reduce the images size.
tinypng-webpack-loader is a webpack loader help to reduce your png images size. config as follows:

webpack.config.js

  {
    test: /\.(jpeg|png)$/,
    use: [
        // ...
        {
            loader: 'tinypng-webpack-loader',
            options: {
                proxy: /**http:your.proxy.com:port*/,
                cachePath: /**cache path*/,
                keys: [/**your tinypng key*/]
            }
        }
    ]
}

Allowed values are as follows

NameTypeDefaultDescription
proxy{String}|the request to tinypng proxy
cachePath{String}|cache the tinypng reduce result
keys{Array<String>}available keys list
1.0.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago