webpack is a multipurpose framework

webpack plugins enable comprehensive testing, packaging, and linting functionalities

webpack can replace browserify, bower, gulp, and grunt within your application stack

Simple webpack Configuration

Very simple, bare-bones, webpack configuration for React


const
  webpack = require('webpack'),
  path = require('path');

module.exports = {
  entry: [
    'babel-polyfill',
    //Entry .jsx file 
    path.resolve(__dirname, 'reactapp/entry.jsx')
    // Input Two
    // path.resolve(__dirname, 'reactapp/entryTwo.jsx')
  ],
  resolve: {
    extensions: ["", ".js", ".jsx"]
  },
  output: {
    path: __dirname + '/public',
    publicPath: '/',
    filename: 'bundle.js'
  },
  module: {
    loaders: [
      {
        test: /\.css$/,
        include: path.resolve(__dirname, 'public'),
        loader: 'style-loader!css-loader?modules'
      },
      {
        test: /\.jsx?$/,
        include: path.resolve(__dirname, 'reactapp'),
        exclude: /node_modules/,
        loader: 'babel'
      },
      {
        test: /\.(png|jpg)$/,
        loader: 'url-loader?limit=8192'
      }
    ]
  }
};


Build Tool Links

Browserify
Grunt
Gulp
Bower
webpack

More configuration here: Git