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.html
for changes of html-webpack-pluginyou 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:
bundle.js
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:
/build
directorynpm start
: start the development model of servernpm run start:prod
: start the production model of servernpm run build
: compile code in production modenpm run lint
: lint with ESlint and Airbnb's style sheet. npm run lint:watch
: eslint watchingnpm run remove:build
: remove the dist directorynpm run clean:build
: clean the dist directory