title: webpack is not working properly in react.js
body: <p>i have created an "hello-world" react app using <code>create-react-app</code> command, then i tried to run the same files using <code>webpack</code>, but it does not working properly, like <code>.ico</code>, <code>.css</code> files are <code>not rendering</code> to the screen.. please help me to solve this issue.</p>
  
  <p>webpack.config.js</p>
  
  <pre><code>const path = require('path');
  
  module.exports = {
    entry: './src/index.js',
    output: {
      path: path.join(__dirname, 'public'),
      filename: 'bundle.js'
    },
    module: {
      rules: [{
        loader: 'babel-loader',
        test: /\.js$/,
        exclude: /node_modules/
      },
      {
        test: /\.css$/,
        exclude: /node_modules/,
        use: [
          {
            loader: 'style-loader'
          },
          {
            loader: 'css-loader',
            options: {
              modules: true,
              // camelCase: true,
              sourceMap: true
            }
          }
        ]
      },
      {
        test: /\.svg$/,
        loaders: [
          'babel-loader',
          {
            loader: 'react-svg-loader',
            query: {
              jsx: true
            }
          },
        ]
      },
      {
        test: /\.json$/,
        loader: 'json-loader',
      },
      {
        test: /\.(jpg|jpeg|gif|png|ico)$/,
        exclude: /node_modules/,
        loader:'file-loader?name=img/[path][name].[ext]&amp;context=./app/images'
     }
    ]
    },
    devtool: 'cheap-module-eval-source-map',
    devServer: {
      contentBase: path.join(__dirname, 'public')
    }
  };
  </code></pre>
  
  <p>package.json</p>
  
  <pre><code>{
    "name": "indecision-app",
    "version": "1.0.0",
    "main": "index.js",
    "author": "Andrew Mead",
    "license": "MIT",
    "scripts": {
      "serve": "live-server public/",
      "build": "webpack",
      "start": "webpack-dev-server"
    },
    "dependencies": {
      "json-loader": "^0.5.7",
      "live-server": "^1.2.0",
      "react": "15.6.1",
      "react-dom": "15.6.1",
      "react-svg-loader": "^2.1.0",
      "style-loader": "^0.20.3",
      "validator": "8.0.0"
    },
    "devDependencies": {
      "babel-cli": "6.24.1",
      "babel-core": "6.25.0",
      "babel-loader": "7.1.1",
      "babel-preset-env": "1.5.2",
      "babel-preset-react": "6.24.1",
      "css-loader": "^0.28.11",
      "file-loader": "^1.1.11",
      "html-webpack-plugin": "^3.2.0",
      "webpack": "^2.7.0",
      "webpack-cli": "^2.0.14",
      "webpack-dev-server": "2.5.1"
    }
  }
  </code></pre>
  
  <p>index.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"&gt;
      &lt;meta name="theme-color" content="#000000"&gt;
      &lt;link rel="manifest" href="%PUBLIC_URL%/manifest.json"&gt;
      &lt;link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"&gt;
      &lt;title&gt;React App&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;noscript&gt;
        You need to enable JavaScript to run this app.
      &lt;/noscript&gt;
      &lt;div id="root"&gt;&lt;/div&gt;
      &lt;script src="/bundle.js"&gt;&lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>.babelrc</p>
  
  <pre><code>{
    "presets": ["env", "react"]
  }
  </code></pre>
  
  <p>Remaining file are same as <code>auto-generated</code> while creating create-react-app. help me to solve this issue</p>