tinypng-compress
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

tinypng-compress

a images compress plugin use with tinyPNG for webpack.

get tinyPNG key

link

Installation

$ npm install tinypng-compress --save-dev

Example Webpack Config

var tinypngCompress = require('tinypng-compress');
 
    //in your webpack plugins array
    module.exports = {
        plugins: [
            new tinypngCompress()
        ]
    }

编译提示

默认在process.env.NODE_ENV = production开启此功能,编译所有webpack assets的图片资源(gif、jpg、jpeg、png)。

License

http://www.opensource.org/licenses/mit-license.php

Package Sidebar

Install

npm i tinypng-compress

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • lolipop99