ks in your production environment to run the production build script automatically. Here&#39;s an example for <a href="https://www.heroku.com/">Heroku</a>:</p>
<pre><code class="lang-json">{
    &quot;name&quot;: &quot;my-project&quot;,
    &quot;scripts&quot;: {
        &quot;start&quot;: &quot;webpack -d --watch&quot;,
        &quot;build&quot;: &quot;webpack -p&quot;,
        &quot;heroku-postbuild&quot;: &quot;webpack -p&quot;
    }
}
</code></pre>

				<hr />
				<small>License: MIT. &copy; Leo Horie.<