title: Webpack Not Rebuilding on Change
body: <p>For some reason I can't get webpack to rebuild my files on change. I basically followed the <a href="https://github.com/BrowserSync/recipes/tree/master/recipes/webpack.typescript" rel="nofollow noreferrer">Browsersync - Webpack + TypeScript Recipe</a>.</p>
  
  <p>My <code>webpack.config.js</code>:</p>
  
  <pre><code>let path = require('path');
  let webpack = require('webpack');
  
  let config = {
    debug: true,
    devtool: 'eval',
    entry: './app/index.ts',
    output: {
      publicPath: '/',
      path: path.join(__dirname, 'wwwroot'),
      filename: 'bundle.js'
    },
    plugins: [],
    resolve: {
      extensions: ['', '.ts', '.js']
    },
    module: {
      loaders: [
        { test: /\.ts$/, loader: 'ts', include: path.join(__dirname, 'app') }
      ]
    }
  };
  module.exports = config;
  </code></pre>
  
  <p>My browser-sync configuration (<code>server.js</code>) which I literally copied from the recipe:</p>
  
  <pre><code>var browserSync          = require('browser-sync').create();
  var webpack              = require('webpack');
  var webpackDevMiddleware = require('webpack-dev-middleware');
  var stripAnsi            = require('strip-ansi');
  var webpackConfig = require('./webpack.config');
  var bundler       = webpack(webpackConfig);
  
  bundler.plugin('done', function (stats) {
      if (stats.hasErrors() || stats.hasWarnings()) {
          return browserSync.sockets.emit('fullscreen:message', {
              title: "Webpack Error:",
              body:  stripAnsi(stats.toString()),
              timeout: 100000
          });
      }
      browserSync.reload();
  });
  
  browserSync.init({
      server: 'wwwroot',
      open: false,
      logFileChanges: false,
      middleware: [
          webpackDevMiddleware(bundler, {
              publicPath: webpackConfig.output.publicPath,
              stats: {colors: true}
          })
      ],
      plugins: ['bs-fullscreen-message'],
      files: [
      ]
  });
  </code></pre>
  
  <p>And to start it all i simply use the npm scripts section:</p>
  
  <pre><code>"scripts": {
    "build": "node server"
  },
  </code></pre>
  
  <p>Whenever I change a typescript file in <code>app/</code> nothing happens.
  What am I doing wrong here?</p>