fis-optimizer-tinypng
v1.0.2
Published
Compress JPG,PNG With Tinyphp
Downloads
6
Maintainers
Readme
fis-optimizer-tinypng
A optimizer for fis to compress JPG,PNG by using tinypng.
use
npm install --save fis-optimizer-tinypng
Application for key https://tinypng.com/developers
settings
//file : path/to/project/fis-conf.js
fis.match('/img/(*.{jpg,png})', {
optimizer: fis.plugin('tinypng', {
to: '../output/img',
key: 'xxxxxxxxxxxxxxxxxxxxxx'
})
});