var path = require('path');
var express = require('express');
var webpack = require('webpack');
var config = require('./webpack.config.cli.dev');

var app = express();
var compiler = webpack(config);

app.use(express.static(__dirname + '/public'));

app.use(require('webpack-dev-middleware')(compiler, {
  noInfo: true,
  publicPath: config.output.publicPath
}));

app.use(require('webpack-hot-middleware')(compiler));

app.get('*', function(req, res) {
  res.sendFile(path.join(__dirname, 'index.html'));
});

app.listen(3000, 'localhost', function(err) {
  if (err) {
    console.log(err);
    return;
  }

  console.log('Listening at http://localhost:3000');
});

@@ -190,24 +190,126 @@
 k(config);%0A%0A
+var port = process.env.STRIPES_PORT %7C%7C 3000;%0Avar address = process.env.STRIPES_IFACE %7C%7C 'localhost';%0A%0A
 app.use(expr
@@ -621,25 +621,21 @@
 ten(
-3000, 'localhost'
+port, address
 , fu
@@ -739,23 +739,32 @@
 p://
-localhost:3000'
+' + address + ':' + port
 );%0A%7D

Add support for environment variables STRIPES_PORT and STRIPES_IFACE to devServer.js (STRIPES-124)