Webpack - Output Files are not generating
<p>I am creating a simple react app using webpack as the bundler and nodejs for creating a server. The thing is my webpack is not generating the output files in the destination folder. I am not seeing any error and <code>http://localhost:3000</code> shows my expected content, but the <code>dist</code> folder is not generated.</p>

<p>Is this something related to hot-module-reloding, and webpack is generating everything from memory for me. I am not sure.  I am new to react and any help will be highly appreciated.</p>

<p>Thanks</p>

<p><strong>webpack.config.js</strong></p>

<pre><code>var path = require('path');
var webpack = require('webpack');

module.exports = {
  devtool: 'eval',
  entry: [
    'webpack-dev-server/client?http://localhost:3000',
    'webpack/hot/only-dev-server',
    './src/index'
  ],
  output: {
    path: path.join(__dirname, 'dist'),
    filename: 'bundle.js',
    publicPath: '/static/'
  },
  plugins: [
    new webpack.HotModuleReplacementPlugin()
  ],
  module: {
    loaders: [{
      test: /\.js$/,
      loaders: ['react-hot', 'babel'],
      include: path.join(__dirname, 'src')
    }]
  }
};
</code></pre>

<p><strong>package.json</strong></p>

<pre><code> "scripts": {
    "start": "node server.js",
    "lint": "eslint src"
  },
//remaining dependencies
</code></pre>

<p><strong>server.js</strong></p>

<pre><code>var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');

new WebpackDevServer(webpack(config), {
  publicPath: config.output.publicPath,
  hot: true,
  historyApiFallback: true
}).listen(3000, 'localhost', function (err, result) {
  if (err) {
    return console.log(err);
  }

  console.log('Listening at http://localhost:3000/');
});
</code></pre>