{"id":19728991,"url":"https://github.com/guoyunhe/swc-minify-webpack-plugin","last_synced_at":"2025-06-19T16:41:30.409Z","repository":{"id":43032632,"uuid":"472820242","full_name":"guoyunhe/swc-minify-webpack-plugin","owner":"guoyunhe","description":"A faster minimizer for webpack based on swc.minify()","archived":false,"fork":false,"pushed_at":"2024-08-22T09:51:04.000Z","size":170,"stargazers_count":9,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-19T22:28:43.970Z","etag":null,"topics":["minimizer","swc","webpack","webpack-plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/guoyunhe.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-03-22T15:06:26.000Z","updated_at":"2025-02-04T09:43:55.000Z","dependencies_parsed_at":"2022-09-26T20:53:35.646Z","dependency_job_id":"71c4f872-f1c8-4537-88af-68c006e6df6b","html_url":"https://github.com/guoyunhe/swc-minify-webpack-plugin","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":0.06666666666666665,"last_synced_commit":"acfd5644b4d268284f23188f54ccfe9d22585b7e"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/guoyunhe/swc-minify-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoyunhe%2Fswc-minify-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoyunhe%2Fswc-minify-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoyunhe%2Fswc-minify-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoyunhe%2Fswc-minify-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guoyunhe","download_url":"https://codeload.github.com/guoyunhe/swc-minify-webpack-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoyunhe%2Fswc-minify-webpack-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260789747,"owners_count":23063629,"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":["minimizer","swc","webpack","webpack-plugin"],"created_at":"2024-11-12T00:09:08.076Z","updated_at":"2025-06-19T16:41:25.399Z","avatar_url":"https://github.com/guoyunhe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwcMinifyWebpackPlugin\n\nFaster minimizer plugin for webpack based on `swc.minify()`.\n\nThis plugin is forked from [swc-webpack-plugin](https://github.com/ice-lab/swc-webpack-plugin), with following differences:\n\n- Simpiler options\n- Use `swc.minify()` instead of `swc.transform()`, for better performance\n- enable `mangle` by default for better compression rate\n\nThis plugin is faster than [terser-webpack-plugin's swc mode](https://webpack.js.org/plugins/terser-webpack-plugin/#swc).\n\n## Install\n\n```\nnpm i -D swc-minify-webpack-plugin\n```\n\n## Usage\n\nRecommended configuration:\n\n```js\n// webpack.config.js\nconst { SwcMinifyWebpackPlugin } = require('swc-minify-webpack-plugin');\n\nmodule.exports = {\n  optimization: {\n    minimize: true,\n    minimizer: [new SwcMinifyWebpackPlugin()],\n  },\n};\n```\n\nCustom configuration:\n\n```js\n// webpack.config.js\nconst { SwcMinifyWebpackPlugin } = require('swc-minify-webpack-plugin');\n\nmodule.exports = {\n  optimization: {\n    minimize: true,\n    minimizer: [\n      new SwcMinifyWebpackPlugin({\n        compress: false,\n        mangle: true,\n      }),\n    ],\n  },\n};\n```\n\n## Options\n\n### `compress`\n\nType: `boolean | object`\n\nDefault: `true`\n\nSee \u003chttps://swc.rs/docs/configuration/minification#jscminifycompress\u003e\n\n### `mangle`\n\nType: `boolean | object`\n\nDefault: `true`\n\nSee \u003chttps://swc.rs/docs/configuration/minification#jscminifymangle\u003e\n\n### `format`\n\nType: `object`\n\nSee \u003chttps://swc.rs/docs/configuration/minification#jscminifyformat\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguoyunhe%2Fswc-minify-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguoyunhe%2Fswc-minify-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguoyunhe%2Fswc-minify-webpack-plugin/lists"}