title: webpack-dev-server doesn't refresh bundle.js neither watch
body: <p>I'm building angular2 app with typescript 2.0.
  My application run well but I've an issue with webpack bundle and hot reloading.</p>
  
  <p>To create my updated <code>bundle.js</code> and to run the <code>server</code> for newly created bundle.js, I've to execute 2 commands separately.</p>
  
  <p><code>webpack</code> and <code>webpack-dev-server</code></p>
  
  <p>I want to do it with 1 command only , that's <code>npm-start</code> and reload server by having a <code>watch</code> for the changes for any file(<code>html or js</code>)</p>
  
  <p>for this I've include script in my <code>package.json</code> as below :</p>
  
  <pre><code>  "scripts": {
      "start": "webpack-dev-server --hot --inline"
    },
  </code></pre>
  
  <p>but it doesn't refresh my <code>bundle.js</code>.</p>
  
  <p><strong>Below is my <code>webpack.config.js</code> :</strong></p>
  
  <pre><code>var path = require("path");
  
  var APP_DIR = path.resolve(__dirname, "app");
  var config = {
      entry: path.resolve(APP_DIR + "/main.ts"),
      output: {
          path: APP_DIR,
          publicPath: APP_DIR,
          filename: "bundle.js"
      },
      watch: true,
      resolve: {
          extensions: ['', '.webpack.js', ".web.js", ".ts", ".js", ".jsx"]
      },
      module: {
          loaders: [
              {
                  test: /\.tsx?$/,
                  loader: "ts-loader",
                  exclude: "node_modules"
              }
          ]
      }
  }
  module.exports = config;
  </code></pre>
  
  <p>I've also analysed this <a href="https://stackoverflow.com/questions/35870100/bundle-js-missing-from-webpack-build-when-using-webpack-dev-server">question of SO</a> and used the <a href="https://github.com/gajus/write-file-webpack-plugin" rel="nofollow noreferrer">plugin</a> mentioned, but getting the error:
  <code>throw new Error('output.path is not. Define output.path.');</code>, which is defined in config.</p>
  
  <p>Could anyone figureout what's wrong ? and further is it possible to refresh <code>bundle.js</code>and watch with single command without <code>plugin</code> ?</p>