'use strict';

var webpack = require('webpack');
var ManifestPlugin = require('webpack-manifest-plugin');

var hopsRoot = require('hops-root');
var hopsConfig = require('..');

var watchOptions = {
  aggregateTimeout: 300,
  ignored: /node_modules/
};

module.exports = {
  entry: [
    'webpack-dev-server/client?http://localhost:8080',
    'webpack/hot/dev-server',
    require.resolve('../lib/hot-shim')
  ],
  output: {
    path: hopsRoot.resolve(hopsConfig.buildDir),
    publicPath: '/',
    filename: '[name].js',
    chunkFilename: 'chunk-[id].js'
  },
  context: hopsRoot.toString(),
  resolve: require('../lib/resolve-config')('develop'),
  module: {
    rules: require('../lib/loader-config')('develop')
  },
  plugins: require('../lib/plugin-config')('develop', [
    new webpack.HotModuleReplacementPlugin(),
    new webpack.NamedModulesPlugin(),
    new ManifestPlugin({
      writeToFileEmit: true,
      publicPath: '/'
    }),
    new webpack.EnvironmentPlugin({
      'NODE_ENV': 'development'
    })
  ]),
  performance: {
    hints: false
  },
  devtool: '#source-map',
  devServer: {
    contentBase: hopsRoot.resolve(hopsConfig.buildDir),
    hot: true,
    noInfo: true,
    stats: 'errors-only',
    watchOptions: watchOptions,
    setup: require('../lib/server-setup')(watchOptions)
  }
};

@@ -1177,20 +1177,65 @@
     
-noInfo: true
+overlay: %7B%0A      warnings: true,%0A      errors: true%0A    %7D
 ,%0A  

tweak dev server output