An open API service indexing awesome lists of open source software.

https://github.com/shaodahong/tinyimg-loader

Use tinypng.com upload/download achieve compress images
https://github.com/shaodahong/tinyimg-loader

tinypng webpack webpack-loader

Last synced: about 2 months ago
JSON representation

Use tinypng.com upload/download achieve compress images

Awesome Lists containing this project

README

          

## tinyimg-loader

Use [tinypng.com](https://tinypng.com) upload/download achieve compress images

### Feature

- [X] Mini size
- [X] Cache

### Install

```bash
$ yarn add tinyimg-loader -D
```

OR

```bash
$ npm i tinyimg-loader -D
```

### Usage

```js
{
test: /\.(png|jpg|gif)$/i,
use: [
{
loader: 'url-loader',
options: {
limit: 10000,
name: 'img/[name].[ext]',
publicPath: '/'
}
},
'tinyimg-loader'
]
}
```