text: 'use strict';
  const webpack = require('webpack');
  const WebpackDevServer = require('webpack-dev-server');
  const argv = require('yargs').argv;
  
  const port = argv.port || 8080;
  
  let webpackConfig = require('../config/webpack.config.js');
  webpackConfig.entry['webpack_hm_client'] = `webpack-dev-server/client?http://localhost:${port}/`;
  const compiler = webpack(webpackConfig);
  
  var server = new WebpackDevServer(compiler, {
      contentBase: ['bin/', 'node_modules/coveo-search-ui/bin/'],
      publicPath: '/commonjs',
      compress: true,
  });
  server.listen(port, 'localhost', function () {});
  