It is a fork of react-scripts package, which allows you to make an injection of your custom settings in the webpack or replace Babel settings. Fork had to do after the maintainer of Create React App package rejected this PR. This package contains all the changes of react-scripts from version to version.
This package is contained in react-scripts-custom branch of main repo fork.
Start with create-react-app
npm install --global create-react-app
create-react-app my-app --scripts-version react-scripts-custom
Start without create-react-app
npm install --global create-react-app
In package.json
:
{
"scripts": {
"start": "BABEL_REPLACE=.custom.babelrc WEBPACK_MERGE=custom.js react-scripts-custom start",
"build": "BABEL_REPLACE=.custom.babelrc WEBPACK_MERGE=custom.js react-scripts-custom build",
"test": "react-scripts-custom test --env=jsdom",
"eject": "react-scripts-custom eject"
}
}
Supported env variables:
BABEL_REPLACE
— Replace Babel configWEBPACK_MERGE
— Merge your webpack cinfig to preinstall webpack configWEBPACK_REPLACE
— Replace webpack config
This package includes scripts and configuration used by Create React App.
Please refer to its documentation:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.