
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
react-scripts-rewired
Advanced tools
Extend create-react-app 3.x as you used to do in react-app-rewired!
This fork exists to bring back the basic functionality of
react-app-rewired
in a simple and non intrusive way.
I do my best to keep this fork up-to-date and to inject as little custom code as possible.
This package includes scripts and configuration used by Create React App.
Please refer to its documentation:
npx create-react-app project-name --scripts-version react-scripts-rewired
In your project's root you'll find webpack.config.extend.js
which contains a simple
function that could mutate the webpack configuration that is provided by create-react-app
.
module.exports = (webpackConfig, env, { paths }) => {
webpackConfig = rewireEslint(webpackConfig)
return webpackConfig
}
The very same concept and signature is applied to the webpackDevServer.config.extend.js
.
You can create your own app template as .cra-template/
and place it in the
folder in which you are going to create your new app.
If you want to specify a custom template folder to use, there is what I believe to be a temporary CLI option that will make CRA to use a local template:
create-react-app \
project-name \
--scripts-version react-scripts-rewired \
--internal-testing-template my-custom-template
This custom fork of react-scripts
comes with a couple of specific templates
that might come in handy to bootstrap a new project:
3.1.1 (2019-08-13)
v3.1.1 is a maintenance release that includes minor bug fixes and documentation updates.
react-scripts
FAQs
Extend create-react-app 3.x as you used to do in react-app-rewired!
We found that react-scripts-rewired demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.