This template is similar to create-react-app, but I created it to understand how Webpack and Babel work.
This is a boilerplate for React projects with Webpack and Babel. This Boilerplate supports JavaScript, CSS and SCSS files. It also comes with the following features for a better development experience 😎:
- live reload 📡
- react fast refresh (without losing the components states ⚛️)
- bundle with hashing
You can
- either download the boilerplate using git
$ git clone https://github.com/Diego-EC/dec-react-boilerplate.git
$ cd dec-react-boilerplate
- or create a new proyect on your GitHub using Diego-EC/dec-react-boilerplate as a template
Start the webpack server with live reload:
$ npm start
- react fast refresh
- build with the command
$ npm run build
- Automatically create bundle files with hashing, for a better deploy experience.
- Supports both CSS and Sass files.