text: var webpack = require('webpack');
  var ProgressPlugin = require('webpack/lib/ProgressPlugin');
  var WebpackDevServer = require('webpack-dev-server');
  var config = require('./conf/webpack-dev');
  var compiler = webpack(config);
  
  compiler.apply(new ProgressPlugin(function (percentage, msg) {
      process.stdout.write((percentage * 100).toFixed(2) + '% ' + msg + '                 \033[0G');
  }));
  new WebpackDevServer(compiler, {
      publicPath: config.output.publicPath,
      hot: true,
      historyApiFallback: true,
      quiet: false,
      stats: {colors: true},
      port: 18080
  }).listen(18080, '0.0.0.0', function (err, result) {
      if (err) {
          console.log(err);
      }
      console.log('Listening at 0.0.0.0:18080');
  });
  