{"id":19142584,"url":"https://github.com/rbarilani/remove-source-map-url-webpack-plugin","last_synced_at":"2025-10-04T09:03:15.029Z","repository":{"id":17352693,"uuid":"81552521","full_name":"rbarilani/remove-source-map-url-webpack-plugin","owner":"rbarilani","description":"Remove source map url comments Webpack Plugin","archived":false,"fork":false,"pushed_at":"2023-01-06T15:02:05.000Z","size":674,"stargazers_count":11,"open_issues_count":16,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T14:48:18.371Z","etag":null,"topics":["webpack"],"latest_commit_sha":null,"homepage":null,"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/rbarilani.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}},"created_at":"2017-02-10T10:04:00.000Z","updated_at":"2022-08-10T10:15:18.000Z","dependencies_parsed_at":"2023-01-11T20:26:27.215Z","dependency_job_id":null,"html_url":"https://github.com/rbarilani/remove-source-map-url-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbarilani%2Fremove-source-map-url-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbarilani%2Fremove-source-map-url-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbarilani%2Fremove-source-map-url-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbarilani%2Fremove-source-map-url-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rbarilani","download_url":"https://codeload.github.com/rbarilani/remove-source-map-url-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252788408,"owners_count":21804281,"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":["webpack"],"created_at":"2024-11-09T07:27:42.688Z","updated_at":"2025-10-04T09:03:14.933Z","avatar_url":"https://github.com/rbarilani.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Remove Source Map Url Webpack Plugin\n====================================\n\n![npm latest version](https://img.shields.io/npm/v/@rbarilani/remove-source-map-url-webpack-plugin)\n![npm downloads](https://img.shields.io/npm/dm/@rbarilani/remove-source-map-url-webpack-plugin?style=plastic)\n[![dependencies Status](https://david-dm.org/rbarilani/remove-source-map-url-webpack-plugin/status.svg)](https://david-dm.org/rbarilani/remove-source-map-url-webpack-plugin)\n[![devDependencies Status](https://david-dm.org/rbarilani/remove-source-map-url-webpack-plugin/dev-status.svg)](https://david-dm.org/rbarilani/remove-source-map-url-webpack-plugin?type=dev)\n[![Build Status](https://travis-ci.com/rbarilani/remove-source-map-url-webpack-plugin.svg?branch=master)](https://travis-ci.com/rbarilani/remove-source-map-url-webpack-plugin)\n[![Coverage Status](https://coveralls.io/repos/github/rbarilani/remove-source-map-url-webpack-plugin/badge.svg?branch=master)](https://coveralls.io/github/rbarilani/remove-source-map-url-webpack-plugin?branch=master)\n\nThis is a webpack plugin that removes `# sourceMappingURL` after compilation.\u003cbr\u003e\nIt's a quick fix for wrong `# sourceMappingURL` comments left in vendor source code when compiling without minification (causing 404 responses from the server).\n\n\n## Install \n\nYou can install the plugin via npm or yarn, pick the right version **based on the webpack version** used in your project.\n\n**Webpack 4**\n\nFor webpack 4 install the 0.x version\n\n```bash\n$ npm install @rbarilani/remove-source-map-url-webpack-plugin@0.x --save-dev\n```\n\n**Webpack 5**\n\nFor webpack 5 install the latest version\n\n```bash\n$ npm install @rbarilani/remove-source-map-url-webpack-plugin@latest --save-dev\n```\n\n## Usage\n\n```js\nvar RemoveSourceMapUrlWebpackPlugin = require('@rbarilani/remove-source-map-url-webpack-plugin');\nvar webpackConfig = {\n  entry: 'index.js',\n  output: {\n    path: 'dist',\n    filename: 'index_bundle.js'\n  },\n  plugins: [\n    new RemoveSourceMapUrlWebpackPlugin({\n      test: /index_bundle\\.js$/\n    })\n  ]\n};\n```\n\n## Options\n\n* `test`: A condition that must be met to include or exclude the assets that should be processed (*default*: `/\\.js($|\\?)/i`). The allowed types for a condition are:\n    * `String` - A string for exact matching with the file name of the asset\n    * `RegExp` - A regular expression which will be tested against the file name of the asset\n    * `Function(fileName:string):bool` - A function that will be invoked with the file name of the asset as the argument and must return `true` to include the asset or `false` to exclude it\n\n\n## Contributing\n\nYou're are welcome to contribute to this project by submitting issues and/or pull requests.\n\n## Development\n\n### NPM scripts\n\n* `npm test` - run test suite\n* `npm run test:coverage` - run test suite and generate coverage reports\n* `npm run test:build` - build the test mock project with webpack-cli\n* `npm run lint` - lint the code base with eslint\n* `npm run lint:fix` - try to fix as many linting issues as possible (the command will also format the code)\n* `npm run format` - format code following project conventions\n* `npm run coveralls` - send coverage report to https://coveralls.io\n\n## License\n\nThis project is licensed under [MIT](./LICENSE).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbarilani%2Fremove-source-map-url-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frbarilani%2Fremove-source-map-url-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbarilani%2Fremove-source-map-url-webpack-plugin/lists"}