var config = module.exports = require("./webpack.config.js");
var webpack = require('webpack');
var _ = require('lodash');

config = _.merge(config, {
    externals : {
        "react" : "React"
    }
});


var StringReplacePlugin = require("string-replace-webpack-plugin");

config.module.loaders.push({
    test: /index.html$/,
    loader: StringReplacePlugin.replace({
        replacements: [
            {
                pattern: /<!-- externals to be replaced by webpack StringReplacePlugin -->/ig,
                replacement: function (match, p1, offset, string) {
                    return '<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react-with-addons.js"></script>';
                }
            }
        ]})
    }
);

var definePlugin = new webpack.DefinePlugin({
  __PRODUCTION__ : true
});

config.plugins.push(
    new StringReplacePlugin(),
    definePlugin
)
@@ -187,16 +187,50 @@
  %22React%22
+,%0A        %22react-dom%22 : %22ReactDOM%22
 %0A    %7D%0A%7D
@@ -710,11 +710,11 @@
 /0.1
-3.3
+4.0
 /rea
@@ -741,16 +741,121 @@
 /script%3E
+%3Cscript type=%22text/javascript%22 src=%22//cdnjs.cloudflare.com/ajax/libs/react/0.14.0/react-dom.js%22%3E%3C/script%3E
 ';%0A     
@@ -1048,8 +1048,9 @@
 Plugin%0A)
+%0A

Update production build for react-0.14