var path = require('path');

module.exports = {
  context: path.join(__dirname, 'src'),
  entry: {
    javascript: './app/app.jsx',
    html: './index.html'
  },

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

  module: {
    loaders: [
      {
        test: /\.(js|jsx)$/,
        exclude: /node_modules/,
        loaders: ['react-hot', 'babel-loader']
      },
      {
        test: /\.html$/,
        loader: 'file?name=[name].[ext]'
      }
    ]
  }
};

@@ -1,8 +1,23 @@
+'use strict';%0A%0A
 var path
@@ -40,27 +40,252 @@
 ');%0A
-%0Amodule.exports = %7B
+var webpack = require('webpack');%0Avar bowerDir = path.join(__dirname, '/bower_components');%0A%0Avar config = %7B%0A  addVendor: function (name, src) %7B%0A    this.resolve.alias%5Bname%5D = src;%0A    this.module.noParse.push(new RegExp('%5E' + name + '$'));%0A  %7D,
 %0A  c
@@ -314,16 +314,17 @@
 rname, '
+/
 src'),%0A 
@@ -348,16 +348,43 @@
 ascript:
+ %5B'webpack/hot/dev-server',
  './app/
@@ -391,16 +391,17 @@
 app.jsx'
+%5D
 ,%0A    ht
@@ -422,102 +422,306 @@
 tml'
+,
 %0A  
-%7D,%0A%0A  output: %7B%0A    filename: 'js/bundle.js',%0A    path: path.join(__dir
+  vendors: %5B'react', 'material', 'material.css'%5D%0A  %7D,%0A  resolve: %7B%0A    alias: %7B%7D%0A  %7D,%0A  plugins: %5B%0A    new webpack.optimize.CommonsChunkPlugin('vendors', 'js/vendors.js')%0A  %5D,%0A  output: %7B%0A    path: process.env.NODE_ENV === 'production' ? './dist' : './build',%0A    file
 name
-, 'dist')
+: 'js/bundle.js'
 %0A  %7D,%0A
-%0A
   mo
@@ -724,24 +724,41 @@
   module: %7B%0A
+    noParse: %5B%5D,%0A
     loaders:
@@ -848,24 +848,9 @@
 ader
-s
 :
- %5B'react-hot',
  'ba
@@ -860,17 +860,16 @@
 -loader'
-%5D
 %0A      %7D
@@ -899,24 +899,57 @@
  /%5C.html$/,%0A
+        exclude: /node_modules/,%0A
         load
@@ -988,18 +988,358 @@
    %7D
-%0A    %5D%0A  %7D%0A%7D
+,%0A      %7B%0A        test: /%5C.css$/,%0A        loader: 'style-loader!css-loader'%0A      %7D%0A    %5D%0A  %7D%0A%7D;%0Aconfig.addVendor('react', bowerDir + '/react/react.min.js');%0Aconfig.addVendor('material', bowerDir + '/material-design-lite/material.min.js');%0Aconfig.addVendor('material.css', bowerDir + '/material-design-lite/material.min.css');%0A%0A%0Amodule.exports = config
 ;%0A

add vendors, css-loaders and deploy mode