{"id":15130430,"url":"https://github.com/brunolemos/extensible-react-scripts","last_synced_at":"2025-09-28T20:30:24.430Z","repository":{"id":80012304,"uuid":"92334235","full_name":"brunolemos/extensible-react-scripts","owner":"brunolemos","description":"Add extension points to Create React App without the need to eject","archived":true,"fork":false,"pushed_at":"2018-03-31T20:30:50.000Z","size":3571,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-14T10:11:07.100Z","etag":null,"topics":["configuration","create-react-app","react","webpack","webpack2"],"latest_commit_sha":null,"homepage":"","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/brunolemos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-05-24T20:35:42.000Z","updated_at":"2023-01-28T19:22:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"62ba65d9-55c2-4c79-806f-2b599eb512a7","html_url":"https://github.com/brunolemos/extensible-react-scripts","commit_stats":{"total_commits":1399,"total_committers":447,"mean_commits":"3.1297539149888145","dds":0.6104360257326662,"last_synced_commit":"50c03134ab58950cfcd530ac18eef49d87d72fab"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunolemos%2Fextensible-react-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunolemos%2Fextensible-react-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunolemos%2Fextensible-react-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunolemos%2Fextensible-react-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brunolemos","download_url":"https://codeload.github.com/brunolemos/extensible-react-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234556090,"owners_count":18851903,"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":["configuration","create-react-app","react","webpack","webpack2"],"created_at":"2024-09-26T02:47:15.452Z","updated_at":"2025-09-28T20:30:19.111Z","avatar_url":"https://github.com/brunolemos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Extensible React Scripts\n\u003e react-scripts version: 1.1.0\n\n## Why?\n\nThe official [react-scripts](https://github.com/facebookincubator/create-react-app/tree/master/packages/react-scripts)  that is included in [Create React App](https://github.com/facebookincubator/create-react-app) does not allow any custom webpack configuration, which leads to people using more `eject` than we wanted to.\n\n### Solution\n\nAllow users to extend webpack configuration.\n\n### Usage\n\n#### New projects\n\n```shell\ncreate-react-app APP_NAME_HERE --scripts-version extensible-react-scripts\n```\n\nEdit the `cra.config.js` file generated at the root of the project.\n\n#### Existing projects\n\n- `yarn remove react-scripts`\n- `yarn add --dev extensible-react-scripts`\n- Create a file named `cra.config.js` at the root of the project (outside `src` folder) exporting a function like below:\n\n\n\n##### cra.config.js example\n\n```js\nmodule.exports = {\n  webpack: function(webpackConfig, { isDevelopment }) {\n    // modify webpack config here\n    const config = Object.assign({}, webpackConfig)\n\n    // return the modified version\n    return config\n  },\n}\n```\n\nThat's it!\n\n## Available configurations\n\n| Config | Format | Return type |\n| ------ | ------ | ---- |\n| [paths](config/paths.js#L52-L66)  | `function(paths, { isDevelopment, resolvePath })` | Object |\n| [webpack](config/webpack.config.dev.js#L38)  | `function(webpackConfig, { isDevelopment, paths, resolvePath })` | Object |\n\n## Versioning\n\nThe version will be the same of the official `react-scripts`. Check [package.json](package.json) or the top of this file.\n\n## Related projects\n\n[react-app-rewired](https://github.com/timarney/react-app-rewired) by [@timarney](https://github.com/timarney)\n\n[configurable-react-scripts](https://github.com/svrcekmichal/configurable-react-scripts) by [@svrcekmichal](https://github.com/svrcekmichal)\n\n## Maintainer\n\nBruno Lemos ([@brunolemos](https://twitter.com/brunolemos) on twitter)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunolemos%2Fextensible-react-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrunolemos%2Fextensible-react-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunolemos%2Fextensible-react-scripts/lists"}