text: require('dotenv').load();
  
  var path = require('path');
  var express = require('express');
  var webpack = require('webpack');
  var config = require('./webpack.config');
  var port = process.env.PORT || 9700;
  
  var app = express();
  var compiler = webpack(config);
  
  app.use(require('webpack-dev-middleware')(compiler, {
    noInfo: true,
    publicPath: config.output.publicPath,
    hot: true
  }));
  
  app.use(express.static(path.join(__dirname, 'build')));
  app.use(require('webpack-hot-middleware')(compiler));
  
  app.get('*', function (req, res) {
    res.sendFile(path.join(__dirname, 'build', 'index.html'));
  });
  
  app.listen(port, 'localhost', function (err) {
    if (err) {
      console.error(err);
      return;
    }
  
    console.log('Listening at http://localhost:' + port);
  });
  