module.exports = {
  entry: './entry.jsx',
  output: {
    filename: 'bundle.js'
  },
  module: {
    loaders: [
      {
        test: /\.js[x]?$/,
        exclude: /node_modules/,
        loader: 'babel'
      },
      {
        test:/\.css$/,
        loader: 'style!css' // 用!去链式调用loader
      },
      {
        test: /\.(png|jpg)$/,
        loader: 'url?limit=8192'
      }
    ]
  }
};

@@ -1,88 +1,278 @@
-module.exports = %7B%0A  entry: './entry.jsx',%0A  output: %7B%0A    filename: 'bundle.js'%0A  %7D
+var webpack = require('webpack');%0A%0Avar uglifyJsPlugin = webpack.optimize.UglifyJsPlugin;%0A%0Amodule.exports = %7B%0A  entry: './entry.jsx',%0A  output: %7B%0A    filename: 'bundle.js'%0A  %7D,%0A  plugins: %5B%0A    new uglifyJsPlugin(%7B%0A      compress: %7B%0A        warnings: false%0A      %7D%0A    %7D)%0A  %5D
 ,%0A  

add uglifyjsplugin