{"maintainers":[{"name":"delai","email":"shidelai@gmail.com"},{"name":"keller35","email":"524495217@qq.com"},{"name":"vinnyguitar","email":"vinnyguitar@126.com"}],"keywords":["cache","uglify","multi-process"],"dist-tags":{"latest":"0.3.0"},"author":{"name":"liwei","email":"vinnyguitar@126.com"},"description":"hight performance uglify plugin for webpack","readme":"<p>\n<a href=\"https://github.com/youzan/\"><img alt=\"有赞logo\" width=\"36px\" src=\"https://img.yzcdn.cn/public_files/2017/02/09/e84aa8cbbf7852688c86218c1f3bbf17.png\" alt=\"youzan\"></a>\n</p>\n<p align=\"center\">FastUglifyJsPlugin</p>\n\n## Introduction\n[中文文档](https://github.com/youzan/fast-uglifyjs-plugin/blob/master/README_ZH.md)\n\ncompatible with webpack 2\n\nThe uglify process of building project in production environment is very time consuming. It could take up to 70% of the build time. FastUglifyJsPlugin have multi-process and cache feature comparing to webpack's UglifyJsPlugin. Multi-process can utilize multicore cpu's caculation capability. Cache can minimize the need to complie code. Below is a set of performance testing data. FastUglifyJsPlugin has a way better performace.\n\n|plugin|time|\n|------|---------|\n|webpack.optimize.UglifyJsPlugin|7.4 min|\n|FastUglifyJsPlugin without cache|4.45 min|\n|FastUglifyJsPlugin with cache|36 s|\n\ntest sample：29 entry,2615 modules\n\ntest environment：MacBook Pro，4 core cpu,8g memory\n\n\n## Installation\n\n```shell\nnpm i fast-uglifyjs-plugin --save\n\n# or \n\nyarn add fast-uglifyjs-plugin\n```\n\n## Configuration\nFastUglifyJsPlugin is base on webpack.optimize.UglifyJsPlugin. They have the same usage except for a few extra configuration.\n\n```js\nvar FastUglifyJsPlugin = require('fast-uglifyjs-plugin');\n\nmodule.exports = {\n    entry: {...},\n    output: {...},\n    plugins: [new FastUglifyJsPlugin({\n        compress: {\n            warnings: false\n        },\n        // set debug as true to output detail cache information           \n        debug: true,\n        // enable cache by default to improve uglify performance. set false to turn it off\n        cache: false,\n        // root directory is the default cache path. it can be configured by following setting\n        cacheFolder: path.resolve(__dirname, '.otherFolder'),\n        // num of worker process default ,os.cpus().length\n        workerNum: 2\n    })]\n};\n```\n### Licence\n[MIT](https://zh.wikipedia.org/wiki/MIT%E8%A8%B1%E5%8F%AF%E8%AD%89)","repository":{"type":"git","url":"git+https://github.com/youzan/fast-uglifyjs-plugin.git"},"bugs":{"url":"https://github.com/youzan/fast-uglifyjs-plugin/issues"},"license":"MIT","versions":{"0.1.2":{"name":"fast-uglifyjs-plugin","version":"0.1.2","description":"hight performance uglify plugin for webpack","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha test"},"author":{"name":"liwei","email":"vinnyguitar@126.com"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.1.2","webpack":"^1.13.3","chalk":"^1.1.3"},"repository":{"type":"git","url":"git@gitlab.qima-inc.com:sz-web/fast-uglifyjs-plugin.git"},"license":"MIT","gitHead":"c7176ccc3f17ec8d6d286eb87b6a4d928c62238b","_id":"fast-uglifyjs-plugin@0.1.2","_shasum":"928825b6c2bc1c0ebdc5a71e49c73a66d8ed78a4","_from":".","_npmVersion":"3.10.9","_nodeVersion":"5.8.0","_npmUser":{"name":"vinnyguitar","email":"vinnyguitar@126.com"},"dist":{"shasum":"928825b6c2bc1c0ebdc5a71e49c73a66d8ed78a4","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/fast-uglifyjs-plugin/-/fast-uglifyjs-plugin-0.1.2.tgz"},"maintainers":[{"name":"vinnyguitar","email":"vinnyguitar@126.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fast-uglifyjs-plugin-0.1.2.tgz_1486701508164_0.060825936729088426"},"directories":{}},"0.1.3":{"name":"fast-uglifyjs-plugin","version":"0.1.3","description":"hight performance uglify plugin for webpack","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha test"},"author":{"name":"liwei","email":"vinnyguitar@126.com"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.1.2","webpack":"^1.13.3","chalk":"^1.1.3"},"repository":{"type":"git","url":"git@gitlab.qima-inc.com:sz-web/fast-uglifyjs-plugin.git"},"license":"MIT","gitHead":"d836a4c2b6fe80e99e2d5886f895583d5069fd50","_id":"fast-uglifyjs-plugin@0.1.3","_shasum":"42d834f46922d61729fb8a787c17b6dc0e3eb60e","_from":".","_npmVersion":"3.10.9","_nodeVersion":"5.8.0","_npmUser":{"name":"vinnyguitar","email":"vinnyguitar@126.com"},"dist":{"shasum":"42d834f46922d61729fb8a787c17b6dc0e3eb60e","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/fast-uglifyjs-plugin/-/fast-uglifyjs-plugin-0.1.3.tgz"},"maintainers":[{"name":"vinnyguitar","email":"vinnyguitar@126.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/fast-uglifyjs-plugin-0.1.3.tgz_1486702763695_0.7035673107020557"},"directories":{}},"0.1.4":{"name":"fast-uglifyjs-plugin","version":"0.1.4","description":"hight performance uglify plugin for webpack","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha test"},"keywords":["cache","uglify","multi-process"],"author":{"name":"liwei","email":"vinnyguitar@126.com"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.1.2","webpack":"^1.13.3","chalk":"^1.1.3"},"repository":{"type":"git","url":"git@gitlab.qima-inc.com:sz-web/fast-uglifyjs-plugin.git"},"license":"MIT","gitHead":"344e5ddd065439500dc905f46e0ac14b9caef21a","_id":"fast-uglifyjs-plugin@0.1.4","_shasum":"a629146ce9b431fc676b244fa1faacddc7ca62af","_from":".","_npmVersion":"3.10.9","_nodeVersion":"5.8.0","_npmUser":{"name":"vinnyguitar","email":"vinnyguitar@126.com"},"dist":{"shasum":"a629146ce9b431fc676b244fa1faacddc7ca62af","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/fast-uglifyjs-plugin/-/fast-uglifyjs-plugin-0.1.4.tgz"},"maintainers":[{"name":"delai","email":"shidelai@gmail.com"},{"name":"vinnyguitar","email":"vinnyguitar@126.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fast-uglifyjs-plugin-0.1.4.tgz_1487510395288_0.5923027370590717"},"directories":{}},"0.1.5":{"name":"fast-uglifyjs-plugin","version":"0.1.5","description":"hight performance uglify plugin for webpack","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha test"},"keywords":["cache","uglify","multi-process"],"author":{"name":"liwei","email":"vinnyguitar@126.com"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.1.2","webpack":"^1.13.3","chalk":"^1.1.3"},"repository":{"type":"git","url":"git@gitlab.qima-inc.com:sz-web/fast-uglifyjs-plugin.git"},"license":"MIT","gitHead":"1d87ab0634e34f305efd124bf53e87d774327e04","_id":"fast-uglifyjs-plugin@0.1.5","_shasum":"190a478dfe2dea6890f808950dda9ac16af3ecd1","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"keller35","email":"524495217@qq.com"},"dist":{"shasum":"190a478dfe2dea6890f808950dda9ac16af3ecd1","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/fast-uglifyjs-plugin/-/fast-uglifyjs-plugin-0.1.5.tgz"},"maintainers":[{"name":"delai","email":"shidelai@gmail.com"},{"name":"keller35","email":"524495217@qq.com"},{"name":"vinnyguitar","email":"vinnyguitar@126.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/fast-uglifyjs-plugin-0.1.5.tgz_1490780451967_0.0048050349578261375"},"directories":{}},"0.1.6":{"name":"fast-uglifyjs-plugin","version":"0.1.6","description":"hight performance uglify plugin for webpack","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha test"},"keywords":["cache","uglify","multi-process"],"author":{"name":"liwei","email":"vinnyguitar@126.com"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.1.2","webpack":"^1.13.3","chalk":"^1.1.3"},"repository":{"type":"git","url":"git+https://github.com/youzan/fast-uglifyjs-plugin.git"},"license":"MIT","gitHead":"8efb6e502f6dcc99c2ba986b2e7a48419bda6383","bugs":{"url":"https://github.com/youzan/fast-uglifyjs-plugin/issues"},"homepage":"https://github.com/youzan/fast-uglifyjs-plugin#readme","_id":"fast-uglifyjs-plugin@0.1.6","_shasum":"e7b7a5e358e56413567fec7dc16165ebc5d3401c","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"keller35","email":"524495217@qq.com"},"dist":{"shasum":"e7b7a5e358e56413567fec7dc16165ebc5d3401c","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/fast-uglifyjs-plugin/-/fast-uglifyjs-plugin-0.1.6.tgz"},"maintainers":[{"name":"delai","email":"shidelai@gmail.com"},{"name":"keller35","email":"524495217@qq.com"},{"name":"vinnyguitar","email":"vinnyguitar@126.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/fast-uglifyjs-plugin-0.1.6.tgz_1491018441988_0.9233681501355022"},"directories":{}},"0.1.7":{"name":"fast-uglifyjs-plugin","version":"0.1.7","description":"hight performance uglify plugin for webpack","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha test"},"keywords":["cache","uglify","multi-process"],"author":{"name":"liwei","email":"vinnyguitar@126.com"},"peerDependencies":{"webpack":"^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.1.2","webpack":"^1.13.3","chalk":"^1.1.3"},"dependencies":{"source-map":"^0.5.6","webpack-sources":"^0.2.3","uglify-js":"^2.7.3"},"repository":{"type":"git","url":"git+https://github.com/youzan/fast-uglifyjs-plugin.git"},"license":"MIT","gitHead":"26fbe84efa6e5be27c52c67c868575e821892ba5","bugs":{"url":"https://github.com/youzan/fast-uglifyjs-plugin/issues"},"homepage":"https://github.com/youzan/fast-uglifyjs-plugin#readme","_id":"fast-uglifyjs-plugin@0.1.7","_shasum":"a6089e9dee62b5c23f0d442e247c8ec494168384","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"keller35","email":"524495217@qq.com"},"dist":{"shasum":"a6089e9dee62b5c23f0d442e247c8ec494168384","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/fast-uglifyjs-plugin/-/fast-uglifyjs-plugin-0.1.7.tgz"},"maintainers":[{"name":"delai","email":"shidelai@gmail.com"},{"name":"keller35","email":"524495217@qq.com"},{"name":"vinnyguitar","email":"vinnyguitar@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fast-uglifyjs-plugin-0.1.7.tgz_1496945344771_0.44901720667257905"},"directories":{}},"0.1.8":{"name":"fast-uglifyjs-plugin","version":"0.1.8","description":"hight performance uglify plugin for webpack","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha test"},"keywords":["cache","uglify","multi-process"],"author":{"name":"liwei","email":"vinnyguitar@126.com"},"peerDependencies":{"webpack":"^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.1.2","webpack":"^1.13.3"},"dependencies":{"source-map":"^0.5.6","webpack-sources":"^0.2.3","uglify-js":"^2.7.3","chalk":"^1.1.3"},"repository":{"type":"git","url":"git+https://github.com/youzan/fast-uglifyjs-plugin.git"},"license":"MIT","gitHead":"28b62ef5e46d5238f2329e337cf90cdd1406c589","bugs":{"url":"https://github.com/youzan/fast-uglifyjs-plugin/issues"},"homepage":"https://github.com/youzan/fast-uglifyjs-plugin#readme","_id":"fast-uglifyjs-plugin@0.1.8","_shasum":"a9ff708068b07950865a4169b6f09dba512e2852","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"keller35","email":"524495217@qq.com"},"dist":{"shasum":"a9ff708068b07950865a4169b6f09dba512e2852","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/fast-uglifyjs-plugin/-/fast-uglifyjs-plugin-0.1.8.tgz"},"maintainers":[{"name":"delai","email":"shidelai@gmail.com"},{"name":"keller35","email":"524495217@qq.com"},{"name":"vinnyguitar","email":"vinnyguitar@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fast-uglifyjs-plugin-0.1.8.tgz_1497164577141_0.16107698064297438"},"directories":{}},"0.2.0":{"name":"fast-uglifyjs-plugin","version":"0.2.0","description":"hight performance uglify plugin for webpack","main":"index.js","scripts":{"test":"rm -rf .uglify && node_modules/mocha/bin/mocha test"},"keywords":["cache","uglify","multi-process"],"author":{"name":"liwei","email":"vinnyguitar@126.com"},"peerDependencies":{"webpack":"^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.1.2","webpack":"^1.13.3"},"dependencies":{"source-map":"^0.5.6","webpack-sources":"^0.2.3","uglify-js":"^2.7.3","chalk":"^1.1.3"},"repository":{"type":"git","url":"git+https://github.com/youzan/fast-uglifyjs-plugin.git"},"license":"MIT","gitHead":"3d204a03b0d1babefeca255bb71d6cf946e87451","bugs":{"url":"https://github.com/youzan/fast-uglifyjs-plugin/issues"},"homepage":"https://github.com/youzan/fast-uglifyjs-plugin#readme","_id":"fast-uglifyjs-plugin@0.2.0","_shasum":"4017a763aa0f619c2d0886d2b46dfed46e5d2d8b","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"keller35","email":"524495217@qq.com"},"dist":{"shasum":"4017a763aa0f619c2d0886d2b46dfed46e5d2d8b","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/fast-uglifyjs-plugin/-/fast-uglifyjs-plugin-0.2.0.tgz"},"maintainers":[{"name":"delai","email":"shidelai@gmail.com"},{"name":"keller35","email":"524495217@qq.com"},{"name":"vinnyguitar","email":"vinnyguitar@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fast-uglifyjs-plugin-0.2.0.tgz_1498547337350_0.5694853833410889"},"directories":{}},"0.3.0":{"name":"fast-uglifyjs-plugin","version":"0.3.0","description":"hight performance uglify plugin for webpack","main":"index.js","scripts":{"test":"rm -rf .uglify && node_modules/mocha/bin/mocha test"},"keywords":["cache","uglify","multi-process"],"author":{"name":"liwei","email":"vinnyguitar@126.com"},"peerDependencies":{"webpack":"^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.1.2","webpack":"^1.13.3"},"dependencies":{"source-map":"^0.5.6","webpack-sources":"^0.2.3","uglify-js":"^2.7.3","chalk":"^1.1.3"},"repository":{"type":"git","url":"git+https://github.com/youzan/fast-uglifyjs-plugin.git"},"license":"MIT","gitHead":"c88e517fc9d92ca88d639727995a3d0f44a0f427","bugs":{"url":"https://github.com/youzan/fast-uglifyjs-plugin/issues"},"homepage":"https://github.com/youzan/fast-uglifyjs-plugin#readme","_id":"fast-uglifyjs-plugin@0.3.0","_shasum":"604dd7b14a7de427199d46689892a30d0c6c9851","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"keller35","email":"524495217@qq.com"},"dist":{"shasum":"604dd7b14a7de427199d46689892a30d0c6c9851","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/fast-uglifyjs-plugin/-/fast-uglifyjs-plugin-0.3.0.tgz"},"maintainers":[{"name":"delai","email":"shidelai@gmail.com"},{"name":"keller35","email":"524495217@qq.com"},{"name":"vinnyguitar","email":"vinnyguitar@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fast-uglifyjs-plugin-0.3.0.tgz_1500786995302_0.6331129109021276"},"directories":{}}},"name":"fast-uglifyjs-plugin","time":{"modified":"2017-07-23T05:16:35.426Z","created":"2017-02-10T04:38:28.399Z","0.1.2":"2017-02-10T04:38:28.399Z","0.1.3":"2017-02-10T04:59:25.576Z","0.1.4":"2017-02-19T13:19:55.516Z","0.1.5":"2017-03-29T09:40:53.890Z","0.1.6":"2017-04-01T03:47:23.975Z","0.1.7":"2017-06-08T18:09:04.952Z","0.1.8":"2017-06-11T07:02:57.240Z","0.2.0":"2017-06-27T07:08:57.530Z","0.3.0":"2017-07-23T05:16:35.426Z"},"readmeFilename":"README.md","homepage":"https://github.com/youzan/fast-uglifyjs-plugin#readme"}