const env = process.env.NODE_ENV

const config = {
  port: '{{port}}',
  title: '{{name}}',
  vendor: [
    'react',
    'react-dom',
    'redux',
    'react-redux',
    'react-router',
    'redux-thunk'
  ],
  postcss: [
    require('postcss-cssnext')({
      browsers: ['last 2 versions', 'ie > 8']
    })
  ]
}

if (env === 'production') {
  config.babel.presets.push('react-optimize')
} else {
  config.babel.presets.push('react-hmre')
}

module.exports = config

@@ -1,38 +1,4 @@
-const env = process.env.NODE_ENV%0A%0A
 cons
@@ -278,136 +278,8 @@
 %0A%7D%0A%0A
-if (env === 'production') %7B%0A  config.babel.presets.push('react-optimize')%0A%7D else %7B%0A  config.babel.presets.push('react-hmre')%0A%7D%0A%0A
 modu

Update config.js