{"id":28425362,"url":"https://github.com/youzan/fast-uglifyjs-plugin","last_synced_at":"2026-03-27T02:17:32.147Z","repository":{"id":57233120,"uuid":"81524779","full_name":"youzan/fast-uglifyjs-plugin","owner":"youzan","description":"hight performance uglify plugin for webpack","archived":false,"fork":false,"pushed_at":"2017-07-23T05:16:30.000Z","size":49,"stargazers_count":71,"open_issues_count":1,"forks_count":13,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-10-20T04:53:35.886Z","etag":null,"topics":["javascript","performance","uglifyjs","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/youzan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-10T04:02:47.000Z","updated_at":"2024-06-30T14:52:38.000Z","dependencies_parsed_at":"2022-08-31T14:11:24.369Z","dependency_job_id":null,"html_url":"https://github.com/youzan/fast-uglifyjs-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/youzan/fast-uglifyjs-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youzan%2Ffast-uglifyjs-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youzan%2Ffast-uglifyjs-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youzan%2Ffast-uglifyjs-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youzan%2Ffast-uglifyjs-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youzan","download_url":"https://codeload.github.com/youzan/fast-uglifyjs-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youzan%2Ffast-uglifyjs-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31009858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T01:56:05.093Z","status":"online","status_checked_at":"2026-03-27T02:00:08.055Z","response_time":164,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","performance","uglifyjs","webpack"],"created_at":"2025-06-05T10:37:06.728Z","updated_at":"2026-03-27T02:17:32.134Z","avatar_url":"https://github.com/youzan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp\u003e\n\u003ca href=\"https://github.com/youzan/\"\u003e\u003cimg alt=\"有赞logo\" width=\"36px\" src=\"https://img.yzcdn.cn/public_files/2017/02/09/e84aa8cbbf7852688c86218c1f3bbf17.png\" alt=\"youzan\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003eFastUglifyJsPlugin\u003c/p\u003e\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)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyouzan%2Ffast-uglifyjs-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyouzan%2Ffast-uglifyjs-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyouzan%2Ffast-uglifyjs-plugin/lists"}