My React Boilerplate with Webpack.
- Webpack 2.3
- React with Babel Loader
- React Hot Module Replacement v3.0
- Sass Loader
- File Loader
- Image Loader with optimization
- ESLint
- Jest for Tests
- Enzyme for React Components Testing
Based on gaearon/react-hot-boilerplate
Based on the guide available at https://webpack.js.org/guides/hmr-react/
- Autoprefixer
- Bootstrap
npm install
npm start
open http://localhost:3000
Now edit src/App.js
.
Your changes will appear without reloading the browser like in this video.
This boilerplate project includes React-friendly ESLint configuration.
npm run lint
A basic production script is included that builds your app to a dist
folder
npm run build
You may want to change the host in webpack.config.js
from localhost
to 0.0.0.0
to allow access from same WiFi network. This is not enabled by default because it is reported to cause problems on Windows. This may also be useful if you're using a VM.