Content not from webpack is served from /foo : <p>I just can't start this server, I read the <a href="https://webpack.js.org/configuration/dev-server/#devserver" rel="noreferrer">webpack-dev-server docs</a>.</p>

<pre><code>devServer: {
  contentBase: path.join(__dirname, "dist"),
  compress: true,
  port: 9000
}
</code></pre>

<p>The sample code looks simple,but I just can't start this server successfully,no matter what I tried,different folder,it just can't get the <strong>content</strong>!!!Am I missing something? </p>

<p>Any help would be great appreciate.</p>

<p>Output:</p>

<pre><code>Project is running at http://0.0.0.0:8080/
webpack output is served from /assets/
Content not from webpack is served from ~/WebstormProjects/react_back/assets/
</code></pre>

<p>My project structure:</p>

<pre><code>├── [drwxr-xr-x ]  src
│   └── [-rw-r--r-- ]  index.js
├── [drwxr-xr-x ]  public
│   ├── [-rw-r--r-- ]  index.html
│   ├── [drwxr-xr-x ]  assets
│   │   └── [-rw-r--r-- ]  bundle.js
│   └── [-rw-r--r-- ]  favicon.ico
├── [-rw-r--r-- ]  package.json
├── [-rw-r--r-- ]  npm-debug.log
├── [-rw-r--r-- ]  webpack.config.js
</code></pre>

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

<pre><code>  "scripts": {
    "build": "webpack",
    "dev": "webpack-dev-server --devtool eval"
  },
</code></pre>

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

<pre><code>module.exports = {
    entry: __dirname + "/src/index.js",
    output: {
        path: __dirname + "/public",
        publicPath: "/assets/",
        filename: "assets/bundle.js",
        chunkFilename: '[name].js'
    },
    devServer: {
        contentBase: __dirname + "/assets/",
        inline: true,
        host: '0.0.0.0',
        port: 8080,
    },
    module: {
        loaders: [
            {
                test: /\.(jpg|jpeg|gif|png|ico)$/,
                exclude: /node_modules/,
                loader: 'file-loader?name=[name].[ext]'
            },
            {
                test: /\.js$/,
                exclude: /node_modules/,
                loader: 'babel-loader',
                query: {
                    presets: ["es2016", "react", "env", "stage-2"]
                }
            }
        ]
    }
};
</code></pre>

<p><strong>Version:</strong></p>

<pre><code>➜  node -v
v7.6.0
➜  webpack-dev-server -v
webpack-dev-server 2.4.1
webpack 2.2.1
</code></pre>
