The Wayback Machine - http://web.archive.org/web/20200523092532/https://github.com/jpsierens/webpack-react-redux
Skip to content
A boilerplate for playing around with react, redux and react-router with the help of webpack.
JavaScript HTML CSS
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Merge branch 'master' into master Jun 14, 2017
.babelrc fixed issue where HMR wasnt working by changing react-transform to re… Jun 27, 2016
.eslintignore initial commit May 9, 2016
.eslintrc linting Jul 31, 2016
.gitignore initial commit May 9, 2016
LICENSE license May 9, 2016
README.md Update README.md Nov 28, 2018
package.json Pass NODE_ENV to the production Webpack build. Jul 18, 2017
server.js reducing console logging to minimum Jul 27, 2016
webpack.config.js Move polyfill from `import` to `webpack` Apr 30, 2017
webpack.production.config.js tyop Apr 30, 2017
yarn.lock Pass NODE_ENV to the production Webpack build. Jul 18, 2017

README.md

webpack-react-redux

A boilerplate for playing around with react, redux and react-router with the help of webpack.

Contains:

  • a working example of a filterable table which you can play around with (look below).
  • ES6 - 7 Support with Babel
  • Redux dev tools to help you keep track of the app's state
  • Routing
  • hot module replacement support so you can change modules or react components without having to reload the browser
  • a webpack production config so you can build the app and make it ready for production
  • Sass support, just import your styles wherever you need them
  • eslint to keep your js readable
  • much more...

Run the app

  1. npm install
  2. npm start

Once running, if you want to hide the redux dev monitor: CTRL+H

Yes, it takes a while to load the first time you open the app.

Is the hot module replacement really working?

Yup! Take a look:

The app updates without the browser having to reload. You don't lose state!

Build the app

npm run build

This will build the app into the "dist" directory in the root of the project. It contains the index.html along with the minified assets, ready for production.

It should look something like the above image.

I don't understand anything!

I went ahead and wrote a detailed series of posts on this project for you. I hope it helps you understand better:

Why doesn't it have async?

To keep it unopinionated. You choose what async library you want. If you want to check out a full example with async in it, check this simple todo-app that uses redux-sagas.

You can’t perform that action at this time.