A boilerplate using React, webpack and hot module reloading, and ES6 + JSX via Babel.You could use it as a base to build your own web app.
The provided boilerplate enables client-side ES6 via the following technologies:
index.htmlfor changes of html-webpack-plugin
you should clone the repo and install the dependencies.
$ git clone https://github.com/chenbin92/react-redux-webpack-starter.git app-name $ cd app-name $ npm install //or cnpm install
In the development mode. launch the boilerplate app：
// run the dev server http://localhost:8080 $ npm start
you should see a new browser tap opening and a title of "Hello React” in http://localhost:8080/, page hot reloads automatically when there are changes
When you run npm start:
In the production mode, you can:
// run the prod server http://localhost:9090 $ npm run start: prod
// build the static files. $ npm run build
npm run build. This will prepare and build the project for production use. It does the following:
npm start: start the development model of server
npm run start:prod: start the production model of server
npm run build: compile code in production mode
npm run lint: lint with ESlint and Airbnb's style sheet.
npm run lint:watch: eslint watching
npm run remove:build: remove the dist directory
npm run clean:build: clean the dist directory