File: //proc/thread-self/root/opt/code/node_modules/compression-webpack-plugin/package.json
{
"name": "compression-webpack-plugin",
"version": "1.1.11",
"author": {
"name": "Tobias Koppers @sokra"
},
"description": "Prepare compressed versions of assets to serve them with Content-Encoding",
"main": "dist/cjs.js",
"files": [
"dist"
],
"license": "MIT",
"scripts": {
"start": "npm run build -- -w",
"appveyor:test": "npm run test",
"build": "cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js'",
"clean": "del-cli dist",
"lint": "eslint --cache src test",
"lint-staged": "lint-staged",
"prebuild": "npm run clean",
"prepare": "npm run build",
"release": "standard-version",
"security": "nsp check",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --collectCoverageFrom='src/**/*.js' --coverage",
"travis:lint": "npm run lint && npm run security",
"travis:test": "npm run test -- --runInBand",
"travis:coverage": "npm run test:coverage -- --runInBand",
"webpack-defaults": "webpack-defaults"
},
"dependencies": {
"cacache": "^10.0.1",
"find-cache-dir": "^1.0.0",
"neo-async": "^2.5.0",
"serialize-javascript": "^1.4.0",
"webpack-sources": "^1.0.1"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-jest": "^21.2.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"cross-env": "^5.1.0",
"del-cli": "^1.1.0",
"eslint": "^4.9.0",
"eslint-config-webpack": "^1.2.5",
"eslint-plugin-import": "^2.8.0",
"jest": "^21.2.1",
"lint-staged": "^4.3.0",
"nsp": "^2.8.1",
"pre-commit": "^1.2.2",
"standard-version": "^4.2.0",
"webpack": "^3.8.1",
"webpack-defaults": "^1.6.0"
},
"peerDependencies": {
"webpack": "^2.0.0 || ^3.0.0 || ^4.0.0"
},
"engines": {
"node": ">= 4.8 < 5.0.0 || >= 5.10"
},
"homepage": "https://webpack.js.org/plugins/compression-webpack-plugin/",
"repository": {
"type": "git",
"url": "git+https://github.com/webpack-contrib/compression-webpack-plugin.git"
},
"bugs": {
"url": "https://github.com/webpack-contrib/compression-webpack-plugin/issues"
},
"pre-commit": "lint-staged",
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
},
"readme": "[![npm][npm]][npm-url]\n[![node][node]][node-url]\n[![deps][deps]][deps-url]\n[![test][test]][test-url]\n[![coverage][cover]][cover-url]\n[![chat][chat]][chat-url]\n\n<div align=\"center\">\n <a href=\"https://github.com/webpack/webpack\">\n <img width=\"200\" height=\"200\"\n src=\"https://cdn.rawgit.com/webpack/media/e7485eb2/logo/icon.svg\">\n </a>\n <h1>Compression Plugin</h1>\n <p>Prepare compressed versions of assets to serve them with Content-Encoding<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**webpack.config.js**\n```js\nconst CompressionPlugin = require(\"compression-webpack-plugin\")\n\nmodule.exports = {\n plugins: [\n new CompressionPlugin(...options)\n ]\n}\n```\n\n<h2 align=\"center\">Options</h2>\n\n|Name|Type|Default|Description|\n|:--:|:--:|:-----:|:----------|\n|**[`test`](#test)**|`{RegExp\\|Array<RegExp>}`|`.`|All assets matching this `{RegExp\\|Array<RegExp>}` are processed|\n|**[`include`](#include)**|`{RegExp\\|Array<RegExp>}`|`undefined`|Files to `include`|\n|**[`exclude`](#exclude)**|`{RegExp\\|Array<RegExp>}`|`undefined`|Files to `exclude`|\n|**[`cache`](#cache)**|`{Boolean\\|String}`|`false`|Enable file caching|\n|**[`asset`](#asset)**|`{String}`|`[path].gz[query]`|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|\n|**[`filename`](#filename)**|`{Function}`|`false`|A `{Function}` `(asset) => asset` which receives the asset name (after processing `asset` option) and returns the new asset name|\n|**[`algorithm`](#algorithm)**|`{String\\|Function}`|`gzip`|Can be `(buffer, cb) => cb(buffer)` or if a `{String}` is used the algorithm is taken from `zlib`|\n|**[`threshold`](#threshold)**|`{Number}`|`0`|Only assets bigger than this size are processed. In bytes.|\n|**[`minRatio`](#minratio)**|`{Number}`|`0.8`|Only assets that compress better than this ratio are processed|\n|**[`deleteOriginalAssets`](#deleteoriginalassets)**|`{Boolean}`|`false`|Whether to delete the original assets or not|\n\n### `test`\n\n**webpack.config.js**\n```js\n[\n new CompressionPlugin({\n test: /\\.js/\n })\n]\n```\n\n### `include`\n\n**webpack.config.js**\n```js\n[\n new CompressionPlugin({\n include: /\\/includes/\n })\n]\n```\n\n### `exclude`\n\n**webpack.config.js**\n```js\n[\n new CompressionPlugin({\n exclude: /\\/excludes/\n })\n]\n```\n\n### `cache`\n\n**webpack.config.js**\n```js\n[\n new CompressionPlugin({\n cache: true\n })\n]\n```\n\n### `asset`\n\n**webpack.config.js**\n```js\n[\n new CompressionPlugin({\n asset: '[path].gz[query]'\n })\n]\n```\n\n### `filename`\n\n**webpack.config.js**\n```js\n[\n new CompressionPlugin({\n filename (asset) {\n asset = 'rename'\n return asset\n }\n })\n]\n```\n\n### `algorithm`\n\n**webpack.config.js**\n```js\n[\n new CompressionPlugin({\n algorithm: 'gzip'\n })\n]\n```\n\n### `threshold`\n\n**webpack.config.js**\n```js\n[\n new CompressionPlugin({\n threshold: 0\n })\n]\n```\n\n### `minRatio`\n\n**webpack.config.js**\n```js\n[\n new CompressionPlugin({\n minRatio: 0.8\n })\n]\n```\n\n### `deleteOriginalAssets`\n\n**webpack.config.js**\n```js\n[\n new CompressionPlugin({\n deleteOriginalAssets: true\n })\n]\n```\n\n<h2 align=\"center\">Maintainers</h2>\n\n<table>\n <tbody>\n <tr>\n <td align=\"center\">\n <a href=\"https://github.com/d3viant0ne\">\n <img width=\"150\" height=\"150\" src=\"https://github.com/d3viant0ne.png?v=3&s=150\">\n </br>\n Joshua Wiens\n </a>\n </td>\n <td align=\"center\">\n <a href=\"https://github.com/bebraw\">\n <img width=\"150\" height=\"150\" src=\"https://github.com/bebraw.png?v=3&s=150\">\n </br>\n Juho Vepsäläinen\n </a>\n </td>\n <td align=\"center\">\n <a href=\"https://github.com/michael-ciniawsky\">\n <img width=\"150\" height=\"150\" src=\"https://github.com/michael-ciniawsky.png?v=3&s=150\">\n </br>\n Michael Ciniawsky\n </a>\n </td>\n <td align=\"center\">\n <a href=\"https://github.com/evilebottnawi\">\n <img width=\"150\" height=\"150\" src=\"https://github.com/evilebottnawi.png?v=3&s=150\">\n </br>\n Alexander Krasnoyarov\n </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[node]: https://img.shields.io/node/v/compression-webpack-plugin.svg\n[node-url]: https://nodejs.org\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[test]: https://secure.travis-ci.org/webpack-contrib/compression-webpack-plugin.svg\n[test-url]: http://travis-ci.org/webpack-contrib/compression-webpack-plugin\n\n[cover]: https://codecov.io/gh/webpack-contrib/compression-webpack-plugin/branch/master/graph/badge.svg\n[cover-url]: https://codecov.io/gh/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\n",
"readmeFilename": "README.md",
"_id": "compression-webpack-plugin@1.1.11",
"dist": {
"shasum": "869cdc3bd10c5568ce49dd35b096f5646f8db87d"
},
"_from": "compression-webpack-plugin@^1.0.0",
"_resolved": "http://registry.npmjs.org/compression-webpack-plugin/-/compression-webpack-plugin-1.1.11.tgz"
}