/*
 * Author: Alexandre Havrileck (Oxyno-zeta)
 * Date: 20/08/16
 * Licence: See Readme
 */

/* ************************************* */
/* ********       REQUIRE       ******** */
/* ************************************* */
const fs = require('fs');
const path = require('path');
const configDev = require('./webpack-dev.config');
const babelrcString = fs.readFileSync(path.resolve(__dirname, '../../.babelrc'));
const babelrc = JSON.parse(babelrcString.toString());

// Update
configDev.module.loaders[0].query = babelrc;
configDev.module.loaders[0].query.presets.push('react-hmre');
configDev.module.loaders[0].query.babelrc = false;
configDev.entry.app.push('webpack-dev-server/client?http://localhost:8080');
configDev.entry.app.push('webpack/hot/only-dev-server');

/* ************************************* */
/* ********       EXPORTS       ******** */
/* ************************************* */

module.exports = configDev;


@@ -321,24 +321,25 @@
 v.config');%0A
+%0A
 const babelr
@@ -473,16 +473,50 @@
  Update%0A
+configDev.module.preLoaders = %5B%5D;%0A
 configDe

Update webpack configuration