title: Firebase hosting + React with webpack
body: <p>Is there a way to add Firebase hosting to React project that utilizes webpack? Specifically, I am trying to add it to <a href="https://github.com/mxstbr/react-boilerplate" rel="noreferrer">https://github.com/mxstbr/react-boilerplate</a></p>
  
  <p>This is my firebase.json file</p>
  
  <pre><code>{
    "hosting": {
      "firebase": "name",
      "public": "app",
      "ignore": [
        "firebase.json",
        "**/.*",
        "**/node_modules/**"
      ],
      "rewrites": [
        {
          "source": "**",
          "destination": "/index.html"
        }
      ]
    }
  }
  </code></pre>
  
  <p>When I call <code>firebase serve</code> the page is empty. However, if I do <code>npm start</code> the app works correctly. So, the JS/React code is not being injected into the index.html, which is </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;Welcome to Firebase Hosting&lt;/title&gt;
    &lt;/head&gt;
    &lt;head&gt;
      &lt;!-- The first thing in any HTML file should be the charset --&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;!-- Make the page mobile compatible --&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;!-- Allow installing the app to the homescreen --&gt;
      &lt;link rel="manifest" href="manifest.json"&gt;
      &lt;meta name="mobile-web-app-capable" content="yes"&gt;
      &lt;title&gt;React.js Boilerplate&lt;/title&gt;
    &lt;/head&gt;
    &lt;!-- The app hooks into this div --&gt;
    &lt;!-- A lot of magic happens in this file. HtmlWebpackPlugin automatically includes all assets (e.g. bundle.js, main.css) with the correct HTML tags, which is why they are missing in this HTML file. Don't add any assets here! (Check out webpackconfig.js if you want to know more) --&gt;
    &lt;body&gt;
    &lt;div id="app"&gt;&lt;/div&gt;
    &lt;div id="message"&gt;
        &lt;h1&gt;Welcome to Firebase Hosting&lt;/h1&gt;
      &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>