Cannot use [chunkhash] or [contenthash] for chunk in '[name].[chunkhash].js' (use [hash] instead) : <p>I'm getting this error when trying to run <code>webpack build</code> with hashing in my config:</p>

<pre><code>ERROR in chunk main [entry]
[name].[chunkhash].js
Cannot use [chunkhash] or [contenthash] for chunk in '[name].[chunkhash].js' 
(use [hash] instead)
</code></pre>

<p>Webpack dev server runs fine</p>

<p>What is the reason for this?</p>
