tinypng配合git的一个命令行工具
npm install my-tiny -S
{
"tinifyKey": [APIKey1, APIKey2],
"ignore": [
"dist"
]
}
可以设置多个, my-tiny会轮询使用所有配置的apikey
"gitHooks": {
"pre-commit": "tiny s"
},
npm install -g my-tiny
tiny c -key APIKey
git add .
tiny s
git commit -m <msg>
- tinify Node.js client for the Tinify API, used for TinyPNG and TinyJPG. Tinify compresses your images intelligently.
Your contributions and suggestions are heartily welcome.