{"id":15964718,"url":"https://github.com/kaze-k/generate-icon-webpack-plugin","last_synced_at":"2026-01-05T12:33:25.186Z","repository":{"id":189298455,"uuid":"680424130","full_name":"kaze-k/generate-icon-webpack-plugin","owner":"kaze-k","description":"A webpack plugin to generate icons of different sizes","archived":false,"fork":false,"pushed_at":"2024-06-01T11:05:22.000Z","size":350,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T02:39:10.440Z","etag":null,"topics":["browser-extension","cli-table","favicon-generator","icons-generator","mkdirp","sharp","webpack","webpack-plugin","webpack5"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/generate-icon-webpack-plugin","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaze-k.png","metadata":{"files":{"readme":"readme.md","changelog":null,"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}},"created_at":"2023-08-19T07:33:01.000Z","updated_at":"2024-06-19T22:16:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c85e166-e511-40e7-9de2-a1f49efd7967","html_url":"https://github.com/kaze-k/generate-icon-webpack-plugin","commit_stats":null,"previous_names":["kaze-k/generate-icon--webpack-plugin","kaze-k/generate-icon-webpack-plugin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaze-k%2Fgenerate-icon-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaze-k%2Fgenerate-icon-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaze-k%2Fgenerate-icon-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaze-k%2Fgenerate-icon-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaze-k","download_url":"https://codeload.github.com/kaze-k/generate-icon-webpack-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245232931,"owners_count":20581704,"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":["browser-extension","cli-table","favicon-generator","icons-generator","mkdirp","sharp","webpack","webpack-plugin","webpack5"],"created_at":"2024-10-07T17:04:06.980Z","updated_at":"2026-01-05T12:33:20.165Z","avatar_url":"https://github.com/kaze-k.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generate-icon-webpack-plugin\n\nA webpack plugin to generate icons of different sizes\n\nImages in the `icons` field and `action.default_icon` field in chrome extensions **Manifest V3** can be generated using this plugin\n\n## Usage\n\nadd the plugin:\n\n``` bash\nnpm install generate-icon-webpack-plugin --save-dev\n// or\npnpm add generate-icon-webpack-plugin -D\n// or\nyarn add generate-icon-webpack-plugin -D\n```\n\nconfigure the plugin:\n\n``` js\nnew CrxPackWebpackPlugin({\n  logo: path.resolve(__dirname, \"./icon.png\"),\n  dir: \"icons\",\n  size: [128, 64, 48, 32, 16], // 128, It can be an array or a number\n  format: \"png\",\n  grayscale: false,\n  imgName: \"icon\",\n  log: true\n})\n```\n\n## Configuration Settings\n\n| Option | Required | Type | Default | About |\n|---|---|---|---|---|\n| logo | yes | string | none | images that need to be converted |\n| dir | no | string | \"icons\" | the directory for the output picture |\n| size | no | number[]/number | [16, 32, 48, 64, 128] | image size, if it is a number, only one image is generated, if it is an array, it is multiple images |\n| format | no | string | \"png\" | the format of the output picture |\n| grayscale | no | boolean | false | whether to generate a gray image |\n| imgName | no | string | \"icon\" | name of the picture |\n| log | no | boolean | false | print picture information |\n\n## Acknowledgement\n\nInspired by [plasmo](https://github.com/PlasmoHQ/plasmo)'s ability to generate images.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaze-k%2Fgenerate-icon-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaze-k%2Fgenerate-icon-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaze-k%2Fgenerate-icon-webpack-plugin/lists"}