This is a very basic setup for a react app. Unlike CRA (create-react-app), this setup gives access to webpack config directly, so we DON'T have to fork the react-scripts
or tweak create-react-app
webpack config(s) using eject
and even we don't have to use react-app-rewired
package.
Default support for:
jsx
(primary),js
sass
(primary),scss
(primary),css
.module.sass
(primary),module.scss
(primary),module.css
.
What's preconfigured:
- babel
- prettier
- es-lint
_redirects
rule for routing in netlify hostingCNAME
for custom domain
Runs the app in the development mode. Open http://localhost:8080 to view it in the browser.
Apply es-lint check to configured files
First lints the project file then runs the app in the development mode. Open http://localhost:8080 to view it in the browser.
Builds the app for production to the dist
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes. Your app is ready to be deployed!
Well, if you're here, you definitely know what you're going to do!
The minimal setup's demo is here