var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var autoprefixer = require('autoprefixer');
var csswring = require('csswring');

module.exports = {
  devtool: 'cheap-module-eval-source-map',
  entry: [
    'webpack-hot-middleware/client',
    './src/index'
  ],

  output: {
    filename: 'bundle.js',
    path: path.join(__dirname, '/dist/'),
    publicPath: '/dist/'
  },

  plugins: [
    new ExtractTextPlugin('bundle.css'),
    new webpack.optimize.OccurenceOrderPlugin(),
    new webpack.HotModuleReplacementPlugin(),
    new webpack.NoErrorsPlugin(),
    new webpack.ProvidePlugin({
      jQuery: "jquery"
    })
  ],

  resolve: {
    extensions: ['', '.jsx', '.js', '.json'],
    modulesDirectories: ['node_modules', 'src']
  },

  module: {
    loaders: [{
      test: /bootstrap\/js\//,
      loader: 'imports?jQuery=jquery'
    }, {
      test: /\.woff(\?v=\d+\.\d+\.\d+)?$/,
      loader: "url?limit=10000&mimetype=application/font-woff"
    }, {
      test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/,
      loader: "url?limit=10000&mimetype=application/font-woff2"
    }, {
      test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
      loader: "url?limit=10000&mimetype=application/octet-stream"
    }, {
      test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
      loader: "file"
    }, {
      test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
      loader: "url?limit=10000&mimetype=image/svg+xml"
    }, {
      test: /\.js$/,
      loaders: ['react-hot', 'babel?stage=0&loose[]=es6.modules'],
      exclude: /node_modules/
    }, {
      test: /\.scss$/,
      loader: "css!postcss-loader!sass"
    }]
  },
  postcss: function() {
    return [autoprefixer, csswring];
  }
};

@@ -327,16 +327,17 @@
 c/index'
+,
 %0A  %5D,%0A%0A 
@@ -440,16 +440,17 @@
 '/dist/'
+,
 %0A  %7D,%0A%0A 
@@ -681,23 +681,25 @@
 ry: 
-%22
+'
 jquery
-%22
+',
 %0A    %7D)
+,
 %0A  %5D
@@ -807,16 +807,17 @@
 , 'src'%5D
+,
 %0A  %7D,%0A%0A 
@@ -911,16 +911,17 @@
 =jquery'
+,
 %0A    %7D, 
@@ -971,33 +971,33 @@
 ,%0A      loader: 
-%22
+'
 url?limit=10000&
@@ -1026,17 +1026,18 @@
 ont-woff
-%22
+',
 %0A    %7D, 
@@ -1088,33 +1088,33 @@
 ,%0A      loader: 
-%22
+'
 url?limit=10000&
@@ -1144,17 +1144,18 @@
 nt-woff2
-%22
+',
 %0A    %7D, 
@@ -1204,33 +1204,33 @@
 ,%0A      loader: 
-%22
+'
 url?limit=10000&
@@ -1262,17 +1262,132 @@
 t-stream
-%22
+',%0A    %7D, %7B%0A      test: /%5C.otf(%5C?v=%5Cd+%5C.%5Cd+%5C.%5Cd+)?$/,%0A      loader: 'url?limit=10000&mimetype=application/font-otf',
 %0A    %7D, 
@@ -1448,14 +1448,15 @@
 er: 
-%22
+'
 file
-%22
+',
 %0A   
@@ -1517,17 +1517,17 @@
 loader: 
-%22
+'
 url?limi
@@ -1556,17 +1556,224 @@
 /svg+xml
-%22
+',%0A    %7D, %7B%0A      test: /%5C.png(%5C?v=%5Cd+%5C.%5Cd+%5C.%5Cd+)?$/,%0A      loader: 'url?limit=10000&mimetype=image/png',%0A    %7D, %7B%0A      test: /%5C.jpg(%5C?v=%5Cd+%5C.%5Cd+%5C.%5Cd+)?$/,%0A      loader: 'url?limit=10000&mimetype=image/jpg',
 %0A    %7D, 
@@ -1891,16 +1891,17 @@
 modules/
+,
 %0A    %7D, 
@@ -1939,17 +1939,17 @@
 loader: 
-%22
+'
 css!post
@@ -1967,16 +1967,18 @@
 sass
-%22
+',
 %0A    %7D%5D
+,
 %0A  %7D
@@ -2043,12 +2043,13 @@
 ng%5D;%0A  %7D
+,
 %0A%7D;%0A

Add support images like *.jpg/png, also add support *.otf fonts