const WebpackNotifierPlugin = require('webpack-notifier');
const path = require('path');

module.exports = {
  entry: './src/editor',
  output: {
    path: __dirname + '/public/',
    filename: 'editor.js'
  },
  module: {
    loaders: [
      {
        test: /\.jsx$/,
        loaders: ["babel"],
        exclude: /node_modules/,
      },
      {
        test: /\.css$/,
        loaders: ["style", "css"]
      }
    ]
  },
  resolve: {
    extensions: ['', '.js', '.jsx']
  },
  plugins: [
    new WebpackNotifierPlugin()
  ]
};

@@ -86,51 +86,139 @@
 ');%0A
-%0Amodule.exports = %7B%0A  entry: './src/editor'
+const webpack = require('webpack');%0A%0Amodule.exports = %7B%0A  entry: %7B%0A    editor: './src/editor',%0A    %22editor.min%22: './src/editor'%0A  %7D
 ,%0A  
@@ -276,22 +276,22 @@
 ename: '
-editor
+%5Bname%5D
 .js'%0A  %7D
@@ -604,16 +604,167 @@
 Plugin()
+,%0A    new webpack.optimize.UglifyJsPlugin(%7B%0A      include: /%5C.min%5C.js$/,%0A      minimize: true,%0A      compress: %7B%0A        warnings: false%0A      %7D%0A    %7D)
 %0A  %5D%0A%7D;%0A

add min build