text: var webpack = require('webpack')
  var config = require('../config/index')
  var merge = require('webpack-merge')
  var baseWebpackConfig = require('./webpack.base.conf')
  var HtmlWebpackPlugin = require('html-webpack-plugin')
  var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
  
  Object.keys(baseWebpackConfig.entry).forEach(function (name) {
      baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name])
  })
  
  module.exports = merge(baseWebpackConfig, {
      devtool: '#cheap-module-eval-source-map',
      plugins: [
          new webpack.DefinePlugin({
              'process.env': config.dev.env
          }),
          new webpack.HotModuleReplacementPlugin(),
          new webpack.NoEmitOnErrorsPlugin(),
          new HtmlWebpackPlugin({
              filename: 'index.html',
              template: 'demo/index/index.html',
              inject: true,
              chunks: ['demo/index/index']
          }),
          new FriendlyErrorsPlugin()
      ]
  })
  