{"id":28657589,"url":"https://github.com/oyjt/vite-plugin-clean-build","last_synced_at":"2026-02-15T02:32:12.694Z","repository":{"id":200130287,"uuid":"705198097","full_name":"oyjt/vite-plugin-clean-build","owner":"oyjt","description":"A vite plugin for remove/clean files after build.","archived":false,"fork":false,"pushed_at":"2025-04-05T05:00:22.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-17T13:53:04.795Z","etag":null,"topics":["clean-files","remove-files","vite","vite-plugin"],"latest_commit_sha":null,"homepage":"","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/oyjt.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-10-15T10:31:49.000Z","updated_at":"2025-04-05T04:57:46.000Z","dependencies_parsed_at":"2023-10-15T21:41:24.150Z","dependency_job_id":"8743d0db-eee5-4591-819d-4b2d6654dd32","html_url":"https://github.com/oyjt/vite-plugin-clean-build","commit_stats":null,"previous_names":["oyjt/vite-plugin-clean-build"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/oyjt/vite-plugin-clean-build","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyjt%2Fvite-plugin-clean-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyjt%2Fvite-plugin-clean-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyjt%2Fvite-plugin-clean-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyjt%2Fvite-plugin-clean-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oyjt","download_url":"https://codeload.github.com/oyjt/vite-plugin-clean-build/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyjt%2Fvite-plugin-clean-build/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29465708,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T01:01:38.065Z","status":"online","status_checked_at":"2026-02-15T02:00:07.449Z","response_time":118,"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":["clean-files","remove-files","vite","vite-plugin"],"created_at":"2025-06-13T09:13:32.717Z","updated_at":"2026-02-15T02:32:12.678Z","avatar_url":"https://github.com/oyjt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite-plugin-clean-build\n\n![npm](https://img.shields.io/npm/v/vite-plugin-clean-build) ![license](https://img.shields.io/npm/l/vite-plugin-clean-build)\n\nA vite plugin for remove/clean files after build.\n\n[English](README.md) | [中文](README_CN.md)\n\n## Table of Contents\n\n1.  [Installation](#installation)\n2.  [Usage](#usage)\n3.  [Issues](#issues)\n4.  [License](#license)\n\n### Installation\n\n\u003ca name=\"installation\"\u003e\u003c/a\u003e\n\n```bash\n  # npm\n  npm i vite-plugin-clean-build -D\n\n  # yarn\n  yarn add vite-plugin-clean-build -D\n\n  # pnpm\n  pnpm add vite-plugin-clean-build -D\n```\n\n### Usage\n\n\u003ca name=\"usage\"\u003e\u003c/a\u003e\n\nHere's an example vite config illustrating how to use this plugin\n\n**vite.config.js**\n```js\nimport CleanBuild from 'vite-plugin-clean-build';\nexport default {\n  plugins: [CleanBuild()],\n}\n```\n\u003ch2 align=\"center\"\u003eOptions\u003c/h2\u003e\n\nYou can pass a hash of configuration options to `vite-plugin-clean-build`.\nAllowed values are as follows:\n\n|Name|Type|Default|Description|\n|:--:|:--:|:-----:|:----------|\n|**`outputDir`**|`{string}`|`'dist'`|Removes files in the directory|\n|**`patterns`**|`{Array\u003cstring\u003e}`|`[]`|Removes files after every build that match this pattern|\n|**`verbose`**|`{boolean}`|`false`|Write logs to console|\n\nHere's an example vite config illustrating how to use these options\n\n**vite.config.js**\n```js\nimport CleanBuild from 'vite-plugin-clean-build';\nexport default {\n  plugins: [CleanBuild(\n    {\n      outputDir: 'dist',\n      patterns: [\n        'images/**',\n        '!images/logo.png'\n      ],\n      verbose: true,\n    }\n  )],\n}\n```\n\n### Issues\n\n\u003ca name=\"issues\"\u003e\u003c/a\u003e\n\nIf you encounter some problems during use, please click here [Issue Report](https://github.com/oyjt/vite-plugin-clean-build/issues)\n\n### License\n\n\u003ca name=\"license\"\u003e\u003c/a\u003e\n\n[MIT License](https://github.com/oyjt/vite-plugin-clean-build/blob/master/LICENSE)\n\nCopyright (c) 2023-present cnpath","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foyjt%2Fvite-plugin-clean-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foyjt%2Fvite-plugin-clean-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foyjt%2Fvite-plugin-clean-build/lists"}