Create React apps with no build configuration.
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.
This is a fork of Create React App, intended for use at our company Code Yellow B.V.
The main differences with Create React App are;
- No CSS Autoprefixer, we only support modern browsers
- Uses cache-loader to cache Babel output
- Doesn't use source maps by default
- Support for
PUBLIC_URL
env variable in dev - Allows module resolving from src/ (e.g.
import 'components/foo'
works everywhere) - Uses Babel Minify instead of UglifyJs for minifying
- Basic Electron compatibility via env variable
- Allows custom dotenv file location (in our build system
.env
cannot live in the repository root) - Includes env variables in frontend build with prefix
CY_FRONTEND_*
instead ofREACT_APP_*
- It is allowed to use a custom .eslintrc file (CRA will ignore .eslintrc files by default)
- Babel preset:
- Less transpiling (we don't have to support many browsers), but still possible to enable a little bit more transpiling via an env variable
- Uses styled-components babel plugin
- Uses decorator babel plugin
npm install -g create-react-app
create-react-app --scripts-version=react-cy-scripts my-app
cd my-app/
npm start
For further instructions, read the Getting Started guide from the original Create React App.