{"id":15020118,"url":"https://github.com/iantsch/cleanup-loader","last_synced_at":"2025-10-25T00:32:01.780Z","repository":{"id":57199850,"uuid":"122735962","full_name":"iantsch/cleanup-loader","owner":"iantsch","description":"Prevent webpack from emitting unwanted .js/.js.map files from certain files","archived":false,"fork":false,"pushed_at":"2023-01-03T23:30:05.000Z","size":28,"stargazers_count":3,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T12:07:39.600Z","etag":null,"topics":["cleanup","esnext","javascript","webpack-loader","webpack3"],"latest_commit_sha":null,"homepage":"https://npm.im/cleanup-loader","language":"JavaScript","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/iantsch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-24T11:49:20.000Z","updated_at":"2024-09-10T05:57:34.000Z","dependencies_parsed_at":"2023-02-01T13:32:10.441Z","dependency_job_id":null,"html_url":"https://github.com/iantsch/cleanup-loader","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iantsch%2Fcleanup-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iantsch%2Fcleanup-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iantsch%2Fcleanup-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iantsch%2Fcleanup-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iantsch","download_url":"https://codeload.github.com/iantsch/cleanup-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238053514,"owners_count":19408699,"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":["cleanup","esnext","javascript","webpack-loader","webpack3"],"created_at":"2024-09-24T19:54:36.839Z","updated_at":"2025-10-25T00:32:01.413Z","avatar_url":"https://github.com/iantsch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cleanup-loader\n\n[![licence](https://img.shields.io/badge/licence-MIT-blue.svg?style=flat-square)]() [![tag](https://img.shields.io/badge/tag-v1.0.0-lightgrey.svg?style=flat-square)]()\n\nPrevent webpack from emitting unwanted .js/.js.map files from certain files\n\n![cleanup-loader](https://raw.githubusercontent.com/iantsch/cleanup-loader/master/assets/cleanup-loader.svg?sanitize=true)\n\n## Installation\n\n```sh\n$ npm i --save-dev cleanup-loader\n```\n\n## Usage\n\n```js\nmodule.exports = {\n  module : {\n    rules:[\n    // Useage with text-extract plugin\n    {\n      test: /\\.scss$/,\n      use: ExctractSass.extract({\n        use: [\n        // ... after all style loaders\n        {\n          loader: 'cleanup-loader',\n          options: {\n            test: /\\.s?css$/\n          }\n        }]\n      })\n    },{\n    // Useage with image optimization\n      test: /\\.(jpe?g|png|gif|svg|eot|ttf|woff2?)$/,\n      use: [\n      // ... after all your image loaders\n      {\n        loader: 'cleanup-loader',\n        options: {\n          test: /\\.(jpe?g|png|gif|svg|eot|ttf|woff2?)$/\n        }\n      }]\n    }]\n  }\n}\n```\n\n## Options\n\n| Parameter | Type | Description |\n|---|---|---|\n| test | ``regex`` | generated .js/.js.map files from tested files are prevented from emitting |\n\n## License\n\nMIT\n\n## Credits\n[@iantsch](https://twitter.com/iantsch) - [web developer](https://mbt.wien) behind this and other projects.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiantsch%2Fcleanup-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiantsch%2Fcleanup-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiantsch%2Fcleanup-loader/lists"}