text: export default function(webpackConfig, opts) {
    webpackConfig.devtool(opts.devtool || 'cheap-module-source-map').output.pathinfo(true);
  
    webpackConfig.plugin('hmr').use(require('webpack/lib/HotModuleReplacementPlugin'));
  
    webpackConfig.when(!!opts.devServer, webpackConfig =>
      webpackConfig.merge({ devServer: opts.devServer }),
    );
  }
  