Skip to content

gaearon/boilerplate-webpack-react

 
 

Repository files navigation

Boilerplate-webpack-react

Instroduction

This is a simple boilerplate project to start fast with Reactjs, webpack and gulp, including offline rendering with hapi.

This includes some webpack loaders like image-webpack-loader for optimizing images and other cool things like Hot Module Replacement for React.

New

Support for offline rendering. This uses hapi for the server but you can easily change that in server\index.js

Usage

Copy this repo.

Webpack-dev-server:

When running, you can edit HelloWorld.react.jsx and save it, your edits will be visible without reloading.

Build for server:

  • Run gulp build

This will create the minified build files

To test it, run node server.

TODO

  • expand the example code with fonts and json

License

Copyright (c) 2014 Thomas Coopoman

MIT (http://opensource.org/licenses/MIT)

About

Boilerplate project for Reactjs with webpack, gulp and stylus

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.6%
  • HTML 1.4%