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
- Host: GitHub
- URL: https://github.com/shaodahong/tinyimg-loader
- Owner: shaodahong
- Created: 2018-09-11T07:05:51.000Z (almost 8 years ago)
- Default Branch: dev
- Last Pushed: 2023-12-15T08:19:59.000Z (over 2 years ago)
- Last Synced: 2025-10-22T04:51:47.862Z (8 months ago)
- Topics: tinypng, webpack, webpack-loader
- Language: JavaScript
- Homepage:
- Size: 1.49 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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'
]
}
```