{"id":15046300,"url":"https://github.com/gmullerb/mutable-webpack-angular-builder","last_synced_at":"2026-02-11T06:31:33.821Z","repository":{"id":34292645,"uuid":"174915734","full_name":"gmullerb/mutable-webpack-angular-builder","owner":"gmullerb","description":"Allows to freely modified the Webpack configuration generated before Angular ng use it for building","archived":false,"fork":false,"pushed_at":"2023-01-04T10:36:11.000Z","size":969,"stargazers_count":1,"open_issues_count":18,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-28T04:57:20.368Z","etag":null,"topics":["angular","angular-cli","angular-devkit","angular-ng","build-angular","builders","cli","custom","devkit","mutable","mutable-webpack","mutate","mutator","ng","react","webpack","webpack-config","webpack-config-mutator","webpack-configuration"],"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/gmullerb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-11T03:01:05.000Z","updated_at":"2023-02-15T20:16:07.000Z","dependencies_parsed_at":"2023-01-15T05:57:40.400Z","dependency_job_id":null,"html_url":"https://github.com/gmullerb/mutable-webpack-angular-builder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gmullerb/mutable-webpack-angular-builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmullerb%2Fmutable-webpack-angular-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmullerb%2Fmutable-webpack-angular-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmullerb%2Fmutable-webpack-angular-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmullerb%2Fmutable-webpack-angular-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmullerb","download_url":"https://codeload.github.com/gmullerb/mutable-webpack-angular-builder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmullerb%2Fmutable-webpack-angular-builder/sbom","scorecard":{"id":430958,"data":{"date":"2025-08-11","repo":{"name":"github.com/gmullerb/mutable-webpack-angular-builder","commit":"801031fceaec088c7a48e3d8697149dc06a44ad7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"92 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-j4f2-536g-r55m","Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-6x33-pw7p-hmpq","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-7x7c-qm48-pq9c","Warn: Project is vulnerable to: GHSA-rc3x-jf5g-xvc5","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-82v2-mx6x-wq7q","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-6fx8-h7jm-663j","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-h9rv-jmmf-4pgx","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-fxwf-4rqh-v8g3","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-xfhh-g9f5-x4m4","Warn: Project is vulnerable to: GHSA-qm95-pgcg-qqfq","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-mgfv-m47x-4wqp","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-72mh-269x-7mh5","Warn: Project is vulnerable to: GHSA-h4j5-c7cj-74xg","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T03:20:01.925Z","repository_id":34292645,"created_at":"2025-08-19T03:20:01.925Z","updated_at":"2025-08-19T03:20:01.925Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29328261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"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":["angular","angular-cli","angular-devkit","angular-ng","build-angular","builders","cli","custom","devkit","mutable","mutable-webpack","mutate","mutator","ng","react","webpack","webpack-config","webpack-config-mutator","webpack-configuration"],"created_at":"2024-09-24T20:52:57.946Z","updated_at":"2026-02-11T06:31:33.805Z","avatar_url":"https://github.com/gmullerb.png","language":"JavaScript","readme":"# Mutable Webpack Angular Builder\n\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](/LICENSE.txt) ![GitHub package.json version](https://img.shields.io/github/package-json/v/gmullerb/mutable-webpack-angular-builder.svg?logo=npm) ![coverage](https://gitlab.com/gmullerb/mutable-webpack-angular-builder/badges/master/coverage.svg)\n\n**mutable-webpack-angular-builder allows to freely modified the Webpack configuration generated before Angular ng use it for building.**\n\nThis project is licensed under the terms of the [MIT license](/LICENSE.txt).\n\n## Quick Start\n\n`package.json`:\n\n```json\n  ..\n  \"devDependencies\": {\n    \"@angular-devkit/build-angular\": \"*\",\n    \"mutable-webpack-angular-builder\": \"1.0.0\",\n    ..\n```\n\n`angular.json`:\n\n```json\n  ..\n  \"architect\": {\n    \"build\": {\n      \"builder\": \"mutable-webpack-angular-builder:browser\",\n      \"options\": {\n        \"mutatorFile\": \"webpack.config.mutator.js\",\n    ..\n```\n\n`webpack.config.mutator.js`:\n\n```js\nmodule.exports = (sourceWebpack) =\u003e {\n  const filteredRules = sourceWebpack.module.rules.filter(\n    (rule) =\u003e !rule.test instanceof RegExp || !rule.test.test('.css')\n  )\n  sourceWebpack.module.rules = filteredRules\n\n  return sourceWebpack\n}\n\n```\n\n## Goal\n\nMany things in Angular Ng processes are **hard-coded** and it is difficult to do some advanced customization[1]. The purpose of mutable-webpack-angular-builder is to allow for **fully modification of the Webpack Configuration provided by Angular** for more \"advanced\" uses.\n\n\u003e [1] Angular Ng processes are quite closed (and documentation is sometimes scattered and with a lot of \"WIP\").  \n\u003e There are other builders like @angular-builders/custom-webpack, which allows only to do merging of Webpack options.\n\n## Using/Configuration\n\n### Prerequisites\n\n* @angular-devkit/build-angular.\n\n### Configuration\n\n1 . Add **mutable-webpack-angular-builder** (and prerequisite) to `package.json`:\n\n```json\n  ..\n  \"devDependencies\": {\n    \"@angular-devkit/build-angular\": \"*\",\n    \"mutable-webpack-angular-builder\": \"1.0.0\",\n    ..\n```\n\n2 . Set `builder` to mutable-webpack-angular-builder in `angular.json`:\n\n```json\n  ..\n  \"architect\": {\n    \"build\": {\n      \"builder\": \"mutable-webpack-angular-builder:browser\",\n    ..\n```\n\n\u003e Usually set as `\"builder\": \"@angular-devkit/build-angular:browser\"`.\n\n3 . Add `\"mutatorFile\"` option to the builder to indicate the file that will contain the function that mutates the Webpack configuration:\n\n```json\n  ..\n    \"build\": {\n      \"builder\": \"mutable-webpack-angular-builder:browser\",\n      \"options\": {\n        \"mutatorFile\": \"webpack.config.mutator.js\",\n    ..\n```\n\n\u003e `mutatorFile` option is an additional option introduced by mutable-webpack-angular-builder.  \n\u003e If the option is not defined, then mutable-webpack-angular-builder:browser will silently \"fail\", i.e. no mutation will be applied.\n\n4 . Create the function that mutates the Webpack configuration:\n\n```js\n(sourceWebpack) =\u003e {\n\n  // do something with the Original Webpack Configuration\n\n  return sourceWebpack // return the Modified Webpack Configuration\n}\n```\n\nE.g: The following removes some module rules that do not work quite well with React, and add some new rules (not shown)\n\n```js\n(sourceWebpack) =\u003e {\n  const filteredRules = sourceWebpack.module.rules.filter(\n    (rule) =\u003e !rule.test instanceof RegExp || !rule.test.test('.css')\n  )\n  filteredRules.push(reactRule)\n  filteredRules.push(cssRule)\n\n  sourceWebpack.module.rules = filteredRules\n\n  return sourceWebpack\n}\n```\n\n\u003e For an actual use example, see [basecode-ionic-react project](https://github.com/gmullerb/basecode-ionic-react)\n\n5 . Export the mutator function using CommonJs (which is what is use by Angular Ng to load this):\n\n`webpack.config.mutator.js`:\n\n```js\nmodule.exports = (sourceWebpack) =\u003e {\n  // do something with the Original Webpack Configuration\n\n  return sourceWebpack // return the Modified Webpack Configuration\n}\n\n```\n\n### Advanced Configuration\n\nA . Additional options may be define and use since no validation is imposed on the Builder's options:\n\n`angular.json`:\n\n```json\n  ..\n  \"architect\": {\n    \"build\": {\n      \"builder\": \"mutable-webpack-angular-builder:browser\",\n      \"options\": {\n        \"mutatorFile\": \"webpack.config.mutator.js\",\n        \"option1\": \"..\",\n        \"optionN\": \"..\",\n    ..\n```\n\nB . Mutator function additionally receive an object with the fields been used to call the Angular Ng Webpack's creator:\n\n```js\n (webpack: WebpackOptions, parameters: {root: string, projectRoot: string, host, options: {}}) =\u003e WebpackOptions\n```\n\nThen, the Mutator function can be:\n\n```js\n(sourceWebpack, parameters) =\u003e {\n\n  // do something with the Original Webpack Configuration\n\n  // use the project root path: parameters.projectRoot\n  // use an Additional options: parameters.option1\n\n  return sourceWebpack // return the Modified Webpack Configuration\n}\n```\n\n## Extending/Developing\n\n[Developing](readme/developing.md)\n\n## Documentation\n\n* [`CHANGELOG.md`](CHANGELOG.md): add information of notable changes for each version here, chronologically ordered [1].\n\n\u003e [1] [Keep a Changelog](http://keepachangelog.com)\n\n## License\n\n[MIT License](/LICENSE.txt)\n\n## Remember\n\n* Use code style verification tools =\u003e Encourage Best Practices and Usability.\n* Start testing early =\u003e Encourage Reliability and Maintainability.\n* Code Review everything =\u003e Encourage Functional suitability, Performance Efficiency and Team work.\n\n## Additional words\n\nDon't forget:\n\n* **Love what you do**.\n* **Learn everyday**.\n* **Learn yourself**.\n* **Share your knowledge**.\n* **Learn from the past, dream on the future, live and enjoy the present to the max!**.\n\nAt life:\n\n* Let's act, not complain.\n* Be flexible.\n\nAt work:\n\n* Let's give solutions, not questions.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmullerb%2Fmutable-webpack-angular-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmullerb%2Fmutable-webpack-angular-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmullerb%2Fmutable-webpack-angular-builder/lists"}