{"maintainers":[{"name":"bebraw","email":"bebraw@gmail.com"},{"name":"d3viant0ne","email":"wiens.joshua@gmail.com"},{"name":"ericclemmons","email":"eric@smarterspam.com"},{"name":"jhnns","email":"mail@johannesewald.de"},{"name":"sokra","email":"tobias.koppers@googlemail.com"},{"name":"thelarkinn","email":"sean.larkin@cuw.edu"}],"dist-tags":{"latest":"0.4.0"},"author":{"name":"Tobias Koppers @sokra"},"description":"Prepare compressed versions of assets to serve them with Content-Encoding","readme":"[![npm][npm]][npm-url]\n[![deps][deps]][deps-url]\n[![chat][chat]][chat-url]\n\n<div align=\"center\">\n  <!-- replace with accurate logo e.g from https://worldvectorlogo.com/ -->\n  <a href=\"https://github.com/webpack/webpack\">\n    <img width=\"200\" height=\"200\" vspace=\"\" hspace=\"25\"\n      src=\"https://cdn.rawgit.com/webpack/media/e7485eb2/logo/icon.svg\">\n  </a>\n  <h1>Compression Plugin</h1>\n  <p>Compression plugin for Webpack.<p>\n</div>\n\n<h2 align=\"center\">Install</h2>\n\n```bash\nnpm i -D compression-webpack-plugin\n```\n\n<h2 align=\"center\">Usage</h2>\n\n``` javascript\nvar CompressionPlugin = require(\"compression-webpack-plugin\");\nmodule.exports = {\n\tplugins: [\n\t\tnew CompressionPlugin({\n\t\t\tasset: \"[path].gz[query]\",\n\t\t\talgorithm: \"gzip\",\n\t\t\ttest: /\\.(js|html)$/,\n\t\t\tthreshold: 10240,\n\t\t\tminRatio: 0.8\n\t\t})\n\t]\n}\n```\n\nArguments:\n\n* `asset`: The target asset name. `[file]` is replaced with the original asset. `[path]` is replaced with the path of the original asset and `[query]` with the query. Defaults to `\"[path].gz[query]\"`.\n* `filename`: A `function(asset)` which receives the asset name (after processing `asset` option) and returns the new asset name. Defaults to `false`.\n* `algorithm`: Can be a `function(buf, callback)` or a string. For a string the algorithm is taken from `zlib` (or zopfli for `zopfli`). Defaults to `\"gzip\"`.\n* `test`: All assets matching this RegExp are processed. Defaults to every asset.\n* `threshold`: Only assets bigger than this size are processed. In bytes. Defaults to `0`.\n* `minRatio`: Only assets that compress better that this ratio are processed. Defaults to `0.8`.\n* `deleteOriginalAssets`: Whether to delete the original assets or not. Defaults to `false`.\n\nOption Arguments for Zopfli (see [node-zopfli](https://github.com/pierreinglebert/node-zopfli#options) doc for details):\n* verbose: Default: false,\n* verbose_more: Default: false,\n* numiterations: Default: 15,\n* blocksplitting: Default: true,\n* blocksplittinglast: Default: false,\n* blocksplittingmax: Default: 15\n\n<h2 align=\"center\">Maintainers</h2>\n\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\">\n        <img width=\"150\" height=\"150\"\n        src=\"https://avatars3.githubusercontent.com/u/166921?v=3&s=150\">\n        </br>\n        <a href=\"https://github.com/bebraw\">Juho Vepsäläinen</a>\n      </td>\n      <td align=\"center\">\n        <img width=\"150\" height=\"150\"\n        src=\"https://avatars2.githubusercontent.com/u/8420490?v=3&s=150\">\n        </br>\n        <a href=\"https://github.com/d3viant0ne\">Joshua Wiens</a>\n      </td>\n      <td align=\"center\">\n        <img width=\"150\" height=\"150\"\n        src=\"https://avatars3.githubusercontent.com/u/533616?v=3&s=150\">\n        </br>\n        <a href=\"https://github.com/SpaceK33z\">Kees Kluskens</a>\n      </td>\n      <td align=\"center\">\n        <img width=\"150\" height=\"150\"\n        src=\"https://avatars3.githubusercontent.com/u/3408176?v=3&s=150\">\n        </br>\n        <a href=\"https://github.com/TheLarkInn\">Sean Larkin</a>\n      </td>\n    </tr>\n  <tbody>\n</table>\n\n\n[npm]: https://img.shields.io/npm/v/compression-webpack-plugin.svg\n[npm-url]: https://npmjs.com/package/compression-webpack-plugin\n\n[deps]: https://david-dm.org/webpack-contrib/compression-webpack-plugin.svg\n[deps-url]: https://david-dm.org/webpack-contrib/compression-webpack-plugin\n\n[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg\n[chat-url]: https://gitter.im/webpack/webpack","repository":{"type":"git","url":"git+ssh://git@github.com/webpack/compression-webpack-plugin.git"},"users":{"cbetancourt":true,"fadihania":true,"oliviercolonna":true,"panlw":true,"rdydns":true,"leonardorb":true},"bugs":{"url":"https://github.com/webpack/compression-webpack-plugin/issues"},"license":"MIT","versions":{"0.1.0":{"name":"compression-webpack-plugin","version":"0.1.0","author":{"name":"Tobias Koppers @sokra"},"description":"Prepare compressed versions of assets to serve them with Content-Encoding","peerDependencies":{"webpack":">=0.11 <0.12"},"dependencies":{"async":"0.2.x"},"homepage":"http://github.com/webpack/compression-webpack-plugin","repository":{"type":"git","url":"http://github.com/webpack/compression-webpack-plugin.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"compression-webpack-plugin@0.1.0","dist":{"shasum":"b7f0174dbf6e1dea973998dcd4629185985be0de","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/compression-webpack-plugin/-/compression-webpack-plugin-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"directories":{}},"0.1.1":{"name":"compression-webpack-plugin","version":"0.1.1","author":{"name":"Tobias Koppers @sokra"},"description":"Prepare compressed versions of assets to serve them with Content-Encoding","peerDependencies":{"webpack":">=0.11 <2"},"dependencies":{"async":"0.2.x"},"homepage":"http://github.com/webpack/compression-webpack-plugin","repository":{"type":"git","url":"http://github.com/webpack/compression-webpack-plugin.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"bugs":{"url":"https://github.com/webpack/compression-webpack-plugin/issues"},"_id":"compression-webpack-plugin@0.1.1","dist":{"shasum":"57d119d15efb9030d4bab6d093e57fd8d4b943a2","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/compression-webpack-plugin/-/compression-webpack-plugin-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"directories":{}},"0.1.2":{"name":"compression-webpack-plugin","version":"0.1.2","author":{"name":"Tobias Koppers @sokra"},"description":"Prepare compressed versions of assets to serve them with Content-Encoding","peerDependencies":{"webpack":">=0.11 <2"},"dependencies":{"async":"0.2.x"},"homepage":"http://github.com/webpack/compression-webpack-plugin","repository":{"type":"git","url":"http://github.com/webpack/compression-webpack-plugin.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"b8e2546fdca27b180d8d0d1f9c20af298b804e6d","bugs":{"url":"https://github.com/webpack/compression-webpack-plugin/issues"},"_id":"compression-webpack-plugin@0.1.2","scripts":{},"_shasum":"2919a4834493bbd407106382329f39b278c0f7b8","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"dist":{"shasum":"2919a4834493bbd407106382329f39b278c0f7b8","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/compression-webpack-plugin/-/compression-webpack-plugin-0.1.2.tgz"},"directories":{}},"0.2.0":{"name":"compression-webpack-plugin","version":"0.2.0","author":{"name":"Tobias Koppers @sokra"},"description":"Prepare compressed versions of assets to serve them with Content-Encoding","peerDependencies":{"webpack":">=0.11 <2"},"dependencies":{"async":"0.2.x"},"homepage":"http://github.com/webpack/compression-webpack-plugin","repository":{"type":"git","url":"http://github.com/webpack/compression-webpack-plugin.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"9a6a85a608e4d4417716d04f3543470194ba8fd2","bugs":{"url":"https://github.com/webpack/compression-webpack-plugin/issues"},"_id":"compression-webpack-plugin@0.2.0","scripts":{},"_shasum":"ce4553a478ad49cbd5374caaa292c9f16beb055f","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"dist":{"shasum":"ce4553a478ad49cbd5374caaa292c9f16beb055f","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/compression-webpack-plugin/-/compression-webpack-plugin-0.2.0.tgz"},"directories":{}},"0.3.0":{"name":"compression-webpack-plugin","version":"0.3.0","author":{"name":"Tobias Koppers @sokra"},"description":"Prepare compressed versions of assets to serve them with Content-Encoding","dependencies":{"async":"0.2.x","webpack-sources":"^0.1.0","node-zopfli":"^1.3.4"},"optionalDependencies":{"node-zopfli":"^1.3.4"},"homepage":"http://github.com/webpack/compression-webpack-plugin","repository":{"type":"git","url":"git+ssh://git@github.com/webpack/compression-webpack-plugin.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"3f06d1bb72715a3e7369d1d7adbaa64eafba5cd3","bugs":{"url":"https://github.com/webpack/compression-webpack-plugin/issues"},"_id":"compression-webpack-plugin@0.3.0","scripts":{},"_shasum":"4a5710c5cf6e957087ea67f476424171a8298935","_from":".","_npmVersion":"3.3.3","_nodeVersion":"5.4.1","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"dist":{"shasum":"4a5710c5cf6e957087ea67f476424171a8298935","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/compression-webpack-plugin/-/compression-webpack-plugin-0.3.0.tgz"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"directories":{}},"0.3.1":{"name":"compression-webpack-plugin","version":"0.3.1","author":{"name":"Tobias Koppers @sokra"},"description":"Prepare compressed versions of assets to serve them with Content-Encoding","dependencies":{"async":"0.2.x","webpack-sources":"^0.1.0","node-zopfli":"^1.3.4"},"optionalDependencies":{"node-zopfli":"^1.3.4"},"homepage":"http://github.com/webpack/compression-webpack-plugin","repository":{"type":"git","url":"git+ssh://git@github.com/webpack/compression-webpack-plugin.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"e428e5325783c13707ab80aafdc5a6f96efe66ac","bugs":{"url":"https://github.com/webpack/compression-webpack-plugin/issues"},"_id":"compression-webpack-plugin@0.3.1","scripts":{},"_shasum":"ea3265d95c2f5a7043039a556d4d7cf6a37a4111","_from":".","_npmVersion":"3.3.3","_nodeVersion":"5.4.1","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"dist":{"shasum":"ea3265d95c2f5a7043039a556d4d7cf6a37a4111","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/compression-webpack-plugin/-/compression-webpack-plugin-0.3.1.tgz"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/compression-webpack-plugin-0.3.1.tgz_1459007885131_0.07380294147878885"},"directories":{}},"0.3.2":{"name":"compression-webpack-plugin","version":"0.3.2","author":{"name":"Tobias Koppers @sokra"},"description":"Prepare compressed versions of assets to serve them with Content-Encoding","dependencies":{"async":"0.2.x","webpack-sources":"^0.1.0","node-zopfli":"^2.0.0"},"optionalDependencies":{"node-zopfli":"^2.0.0"},"homepage":"http://github.com/webpack/compression-webpack-plugin","repository":{"type":"git","url":"git+ssh://git@github.com/webpack/compression-webpack-plugin.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"7e55907cd54a2e91b96d25a660acc6a2a6453f54","bugs":{"url":"https://github.com/webpack/compression-webpack-plugin/issues"},"_id":"compression-webpack-plugin@0.3.2","scripts":{},"_shasum":"1edfb0e749d7366d3e701670c463359b2c0cf704","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"thelarkinn","email":"sean.larkin@cuw.edu"},"dist":{"shasum":"1edfb0e749d7366d3e701670c463359b2c0cf704","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/compression-webpack-plugin/-/compression-webpack-plugin-0.3.2.tgz"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"},{"name":"thelarkinn","email":"sean.larkin@cuw.edu"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/compression-webpack-plugin-0.3.2.tgz_1476469897444_0.649806208210066"},"directories":{}},"0.4.0":{"name":"compression-webpack-plugin","version":"0.4.0","author":{"name":"Tobias Koppers @sokra"},"description":"Prepare compressed versions of assets to serve them with Content-Encoding","scripts":{"release":"standard-version"},"dependencies":{"async":"0.2.x","webpack-sources":"^0.1.0","node-zopfli":"^2.0.0"},"devDependencies":{"standard-version":"^4.0.0"},"optionalDependencies":{"node-zopfli":"^2.0.0"},"homepage":"http://github.com/webpack/compression-webpack-plugin","repository":{"type":"git","url":"git+ssh://git@github.com/webpack/compression-webpack-plugin.git"},"license":"MIT","gitHead":"894a96b16caea8a6c7a29fa6134617736d81483d","bugs":{"url":"https://github.com/webpack/compression-webpack-plugin/issues"},"_id":"compression-webpack-plugin@0.4.0","_shasum":"811de04215f811ea6a12d4d8aed8457d758f13ac","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"d3viant0ne","email":"wiens.joshua@gmail.com"},"dist":{"shasum":"811de04215f811ea6a12d4d8aed8457d758f13ac","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/compression-webpack-plugin/-/compression-webpack-plugin-0.4.0.tgz"},"maintainers":[{"name":"bebraw","email":"bebraw@gmail.com"},{"name":"d3viant0ne","email":"wiens.joshua@gmail.com"},{"name":"ericclemmons","email":"eric@smarterspam.com"},{"name":"jhnns","email":"mail@johannesewald.de"},{"name":"sokra","email":"tobias.koppers@googlemail.com"},{"name":"thelarkinn","email":"sean.larkin@cuw.edu"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/compression-webpack-plugin-0.4.0.tgz_1491626536272_0.7976787050720304"},"directories":{}}},"name":"compression-webpack-plugin","time":{"modified":"2017-04-08T04:42:18.378Z","created":"2013-08-05T14:40:18.706Z","0.1.0":"2013-08-06T08:28:23.763Z","0.1.1":"2013-12-17T23:26:46.597Z","0.1.2":"2014-11-11T12:41:36.967Z","0.2.0":"2015-04-08T09:10:54.604Z","0.3.0":"2016-01-23T11:39:31.201Z","0.3.1":"2016-03-26T15:58:06.030Z","0.3.2":"2016-10-14T18:31:38.927Z","0.4.0":"2017-04-08T04:42:18.378Z"},"readmeFilename":"README.md","homepage":"http://github.com/webpack/compression-webpack-plugin"}