Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
babel-preset-test-bundled-dependencies
Advanced tools
Readme
This is not a fork of
create-react-app
. It's just a fork ofreact-scripts
with simple babel/webpack modifications that can toggle extra features.
The reason for this fork's existence is explained better in this Medium article.
*the features are optional and can be turned on/off individually
create-react-app my-app --scripts-version custom-react-scripts
Modify the .env
file in the root of the generated project, and add any of the configuration options below 👇 to enable that feature.
The generated project comes with SASS, LESS, and CSS modules support by default, but you can remove them at any time by removing the options from the .env
file.
REACT_APP_SASS=true
- enable SASS supportREACT_APP_LESS=true
- enable LESS supportREACT_APP_STYLUS=true
- enable Stylus supportREACT_APP_CSS_MODULES
- enable CSS modulesREACT_APP_BABEL_STAGE_0=true
- enable stage-0 Babel presetREACT_APP_DECORATORS=true
- enable decorators support⚠️ Please note that the Babel features are highly experimental (especially stage-0) and still not a part of the ES specification. Use them at your own risk of breaking backwards compatibility if they don't make the final version of the spec.
PORT=3015
- change default port (supported in CRA by default)OPEN_BROWSER=false
- don't open browser after running webpack serverThe create-react-app
app doesn't allow user configuration and modifications for few reasons:
But people still want to use some of these features, and they're either ejecting their CRA app, or just don't use create-react-app
because they're just missing X feature.
So instead of searching npm for a react-scripts
fork with the X feature you need, this fork provides support for all of these extra features with simply adding a line in the .env
config.
The CRA team recently added support for an .env
file in the root of the generated CRA project.
From the original readme:
To define permanent environment vairables, create a file called .env in the root of your project: REACT_APP_SECRET_CODE=abcdef
I just added support for extra environment variables that actually turn on certain plugins, babel plugins, presets, and loaders in the webpack and babel configs of react-scripts
.
I will put all of my efforts into supporting this fork to be always on par with features with the newest create-react-app
and react-scripts
versions.
FAQs
Allow custom config for create-react-app without ejecting
We found that babel-preset-test-bundled-dependencies 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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).