const webpack = require('webpack');

const webpackConfig = require('./conf.common');
const moduleConfigDev = require('./module.dev');

module.exports = Object.assign({}, webpackConfig, {
    devtool: 'source-map',
    entry: [
        `webpack-dev-server/client?http://0.0.0.0:${process.env.PORT_WDS}`,
        'webpack/hot/only-dev-server'
    ].concat(webpackConfig.entry),
    plugins: webpackConfig.plugins.concat([
        new webpack.HotModuleReplacementPlugin()
    ]),
    module: moduleConfigDev,
    devServer: {
        stats: {
            colors: true,
            modules: false,
            chunks: false,
            reasons: true
        },
        hot: true,
        quiet: false,
        noInfo: false,
        publicPath: '/',
        port: process.env.PORT_WDS,
        proxy: {
            '/': {
                target: `http://localhost:${process.env.PORT}`,
                secure: false
            }
        }
    }
});


@@ -413,16 +413,162 @@
 oncat(%5B%0A
+        new webpack.DefinePlugin(%7B%0A            'process.env': %7B%0A                NODE_ENV: JSON.stringify('development')%0A            %7D%0A        %7D),%0A
         

Insert development node env into webpack