A simple React starter boilerplate
Install all the dependencies for the project.
npm install
Creates a bundle and a develop server with the app and hot reload.
It will create a linter watcher in es6 files.
npm start
open http://localhost:3000
The build process will generate the minified files for a production enviroment. These files will be saved into the build folder.
It will generate a .js file for the vendor libraries (installed as dependencies at the package.json) with vendor.[hash].js name.
The app .js file with app.[hash].js name.
And the styles with styles.[hash].css.
It will also generate the respective map file for each one.
npm run build
Building in this way, it will generate a stats.json file with webpack build details.
These files can be uploaded to webpack analyse tool for a more detailed visual info.
npm run stats
This boilerplate project includes React-friendly ESLint configuration.
npm run lint