{"id":17757851,"url":"https://github.com/lopatnov/rollup-plugin-uglify","last_synced_at":"2025-03-15T07:32:01.685Z","repository":{"id":36468595,"uuid":"226458389","full_name":"lopatnov/rollup-plugin-uglify","owner":"lopatnov","description":"A rollup plugin to minify javascript with Terser","archived":false,"fork":false,"pushed_at":"2024-08-04T18:06:26.000Z","size":918,"stargazers_count":7,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T16:49:26.386Z","etag":null,"topics":["javascript","rollup","rollup-plugin","terser","typescript","uglify"],"latest_commit_sha":null,"homepage":"https://lopatnov.github.io/rollup-plugin-uglify/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lopatnov.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-07T05:00:23.000Z","updated_at":"2024-08-04T18:06:29.000Z","dependencies_parsed_at":"2024-06-18T20:32:38.777Z","dependency_job_id":"a926354d-8bc6-44b1-b90f-53a02770e9a8","html_url":"https://github.com/lopatnov/rollup-plugin-uglify","commit_stats":{"total_commits":50,"total_committers":3,"mean_commits":"16.666666666666668","dds":0.06000000000000005,"last_synced_commit":"d6365d2d856e50f45324d330259bfa3d35a944af"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lopatnov%2Frollup-plugin-uglify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lopatnov%2Frollup-plugin-uglify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lopatnov%2Frollup-plugin-uglify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lopatnov%2Frollup-plugin-uglify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lopatnov","download_url":"https://codeload.github.com/lopatnov/rollup-plugin-uglify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243701276,"owners_count":20333615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","rollup","rollup-plugin","terser","typescript","uglify"],"created_at":"2024-10-26T17:09:15.238Z","updated_at":"2025-03-15T07:32:01.344Z","avatar_url":"https://github.com/lopatnov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @lopatnov/rollup-plugin-uglify [![LinkedIn][linkedinbage]][linkedin]\n\n[![npm](https://img.shields.io/npm/dt/@lopatnov/rollup-plugin-uglify)](https://www.npmjs.com/package/@lopatnov/rollup-plugin-uglify)\n[![NPM version](https://badge.fury.io/js/%40lopatnov%2Frollup-plugin-uglify.svg)](https://www.npmjs.com/package/@lopatnov/rollup-plugin-uglify)\n[![License](https://img.shields.io/github/license/lopatnov/rollup-plugin-uglify)](https://github.com/lopatnov/rollup-plugin-uglify/blob/master/LICENSE)\n[![GitHub issues](https://img.shields.io/github/issues/lopatnov/rollup-plugin-uglify)](https://github.com/lopatnov/rollup-plugin-uglify/issues)\n[![GitHub forks](https://img.shields.io/github/forks/lopatnov/rollup-plugin-uglify)](https://github.com/lopatnov/rollup-plugin-uglify/network)\n[![GitHub stars](https://img.shields.io/github/stars/lopatnov/rollup-plugin-uglify)](https://github.com/lopatnov/rollup-plugin-uglify/stargazers)\n[![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/@lopatnov/rollup-plugin-uglify)](https://www.npmjs.com/package/@lopatnov/rollup-plugin-uglify?activeTab=dependencies)\n\nA rollup plugin to minify javascript\n\n## Requirements\n\nInstall rollup and terser first.\n\n```shell\nnpm install rollup --save-dev\nnpm install terser --save-dev\n```\n\n## Install\n\n[![https://nodei.co/npm/@lopatnov/rollup-plugin-uglify.png?downloads=true\u0026downloadRank=true\u0026stars=true](https://nodei.co/npm/@lopatnov/rollup-plugin-uglify.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://www.npmjs.com/package/@lopatnov/rollup-plugin-uglify)\n\n```shell\nnpm install @lopatnov/rollup-plugin-uglify --save-dev\n```\n\n### Import package to the project\n\nESM import\n\n```typescript\nimport uglify from \"@lopatnov/rollup-plugin-uglify\";\n```\n\nCJS require\n\n```javascript\nvar uglify = require(\"@lopatnov/rollup-plugin-uglify\");\n```\n\n### How to use plugin\n\nFile rollup.config.ts\n\n```typescript\nexport default {\n  //...\n  plugins: [\n    //...\n    uglify(),\n  ],\n};\n```\n\n#### with options\n\n```typescript\nexport default {\n  //...\n  plugins: [\n    //...\n    uglify({\n      //options: IUglifyOptions\n    }),\n  ],\n};\n```\n\n#### Options\n\n`uglify` function has optional argument `options: IUglifyOptions`.\n\n`IUglifyOptions` is an interface, that extends [`MinifyOptions`][minify-options] of `terser` package.\n\n`IUglifyOptions` contains:\n\n- `include?: string | RegExp`\n- `exclude?: string | RegExp`\n\nA valid minimatch pattern, or array of patterns to include / exclude files. If `include` is omitted or has zero length, filter will return true by default. Otherwise, an ID must match one or more of the minimatch patterns, and must not match any of the `exclude` patterns.\n\n## Troubleshooting\n\n### Issue 13: cannot find module @rollup/pluginutils\n\nVersions migration: 2.1.2 -\u003e 2.1.4\n\n[rollup-pluginutils](https://github.com/rollup/rollup-pluginutils) has moved and is now available at [@rollup/pluginutils](https://www.npmjs.com/package/@rollup/pluginutils). The best way is to update dependency to `@rollup/pluginutils` as in [documentation](https://rollupjs.org/guide/en/#transformers) or use version `2.1.2` that don't have conflict with `rollup-pluginutils`.\n\n## Rights and Agreements [![LinkedIn][linkedinbage]][linkedin]\n\nContact me in LinkedIn, I will consider profitable business offers. I am Computer Software Engineer. I develop software of various complexity for the web. I would be glad to receive job offers. \n\nLicense [Apache-2.0][license]\n\nCopyright 2019-2023 Oleksandr Lopatnov\n\n[minify-options]: https://terser.org/docs/api-reference#minify-options-structure\n[license]: https://github.com/lopatnov/rollup-plugin-uglify/blob/master/LICENSE\n[linkedinbage]: https://img.shields.io/badge/LinkedIn-lopatnov-informational?style=social\u0026logo=linkedin\n[linkedin]: https://www.linkedin.com/in/lopatnov/\n[dobro]: https://dobro.ua/en/projects/category/zdorovia?page=1\u0026category=zdorovia\u0026tag=28\n[charity_health]: https://img.shields.io/badge/Charity%20Health-Dobro-red?style=flat-square\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABBVBMVEUAAAAAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWQAuWT///+PPo6DAAAAVXRSTlMAAA4wOR0CAUe/7vPbfA9K5PyKBAPF9PL47f7qN2QiW0V+mpvejJWBnaBanDWLpUva3aGemaa7o1d7rY2nXt/G/eszLmoUZ4mAT+ePBU3D3IIREDEe6n6MQgAAAAFiS0dEVgoN6YkAAAAHdElNRQfkCAcPCB1MJSGgAAAAlElEQVQY02NgIB0wMjIxs7CyMcIF2Dk4ubh5ePngIvwCoUAgKCTMyMjOyCbCziAqJi4hKSUlLSMrJ6+gqKTMoKKqqqauoaGppa2jq6epb8BgqGFkbGJqZm6hZmllbWNrx2AfKuXgIBXq6OSs6uLq5u7B4OkFMtTB24cRCEC2sPn6cXH7BwQyIhwWFMwSIsJIkm9QAQBayRNRV4rFmQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0wOC0wN1QxNTowODoyOSswMjowMBaHG7YAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDgtMDdUMTU6MDg6MjkrMDI6MDBn2qMKAAAAV3pUWHRSYXcgcHJvZmlsZSB0eXBlIGlwdGMAAHic4/IMCHFWKCjKT8vMSeVSAAMjCy5jCxMjE0uTFAMTIESANMNkAyOzVCDL2NTIxMzEHMQHy4BIoEouAOoXEXTyQjWVAAAAAElFTkSuQmCC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flopatnov%2Frollup-plugin-uglify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flopatnov%2Frollup-plugin-uglify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flopatnov%2Frollup-plugin-uglify/lists"}