title: How do I get webpack-dev-server to serve files?
body: <p>I'm going through the docs for webpack 4 and trying to get webpack-dev-server running from a very simple configuration.</p>
  
  <p>I've installed webpack-dev-server and added minimal configuration for it in my webpack.config.js:</p>
  
  <pre><code>const path = require('path');
  
  module.exports = {
  
      entry: './src/index.js',
      output: {
          path: path.resolve(__dirname, 'dist/js'),
          filename: 'bundle.js'
      },
  
      watch : true,
  
      devServer: {
          contentBase: './dist',
          port: 9999
      }
  
  }; //config ends
  </code></pre>
  
  <p>However, when I run webpack and then navigate to <a href="http://localhost:9999" rel="nofollow noreferrer">http://localhost:9999</a>, nothing is being served. There is no server listening for connections.</p>