{"id":16198721,"url":"https://github.com/ali322/cleanup-webpack-plugin","last_synced_at":"2026-04-30T15:31:52.304Z","repository":{"id":66138164,"uuid":"131386855","full_name":"ali322/cleanup-webpack-plugin","owner":"ali322","description":"cleanup extraneous files by webpack","archived":false,"fork":false,"pushed_at":"2018-04-28T07:58:12.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T12:02:52.381Z","etag":null,"topics":["cleanup","webpack","webpack4"],"latest_commit_sha":null,"homepage":null,"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/ali322.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-04-28T07:51:21.000Z","updated_at":"2018-04-28T08:01:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd569c17-917b-435f-8c08-28ef08c0eda6","html_url":"https://github.com/ali322/cleanup-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ali322/cleanup-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali322%2Fcleanup-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali322%2Fcleanup-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali322%2Fcleanup-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali322%2Fcleanup-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ali322","download_url":"https://codeload.github.com/ali322/cleanup-webpack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali322%2Fcleanup-webpack-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32469344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cleanup","webpack","webpack4"],"created_at":"2024-10-10T09:14:43.535Z","updated_at":"2026-04-30T15:31:52.288Z","avatar_url":"https://github.com/ali322.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"cleanup-webpack-plugin [![Build Status](https://travis-ci.org/ali322/cleanup-webpack-plugin.svg?branch=master)](https://travis-ci.org/ali322/cleanup-webpack-plugin) [![npm version](https://badge.fury.io/js/cleanup-webpack-plugin.svg)](https://badge.fury.io/js/cleanup-webpack-plugin)\n===\n[![NPM](https://nodei.co/npm/cleanup-webpack-plugin.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/cleanup-webpack-plugin/)\n\ninspired by [webpack-cleanup-plugin](https://github.com/gpbl/webpack-cleanup-plugin/blob/master/src/WebpackCleanupPlugin.js),cleanup files before run or after done\n\n\nUsage\n===\n\nadd plugin in your webpack.config.js\n\n```javascript\nvar CleanupPlugin = require('cleanup-webpack-plugin')\n\nmodule.exports = {\n    entry:{\n        index:\"./index.js\"\n    },\n    module:{\n        loaders:[\n            ...\n        ]\n    },\n    output:{\n        path:'./dist',\n        filename:'[name]-[hash:8].min.js'\n    },\n    plugins:[\n      new CleanupPlugin({\n        include: ['./dist/*.js']\n      })\n    ]\n}\n```\n\nthis plugin will delete all .js files in dist directory before webpack bundle run everytime\n\nPlugin Options\n===\n\n- **include**: delete files include which match glob patterns\n- **exclude**: delete all files exclude which match glob patterns, if include options is provide, then this option will be ignore\n- **when**: should be `before` or `after`\n\n\n## License\n\n[MIT License](http://en.wikipedia.org/wiki/MIT_License)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali322%2Fcleanup-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fali322%2Fcleanup-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali322%2Fcleanup-webpack-plugin/lists"}