build script in package.json using webpack with --config flag as : <p>In my package.json I'm trying to use <code>webpack</code> in a script but it keeps failing.</p>

<pre><code>  "scripts": {
    "start": "node server.js",
    "test": "mocha 'src/**/test*.coffee' --watch --compilers coffee:coffee-script/register",
    "build": "webpack --config webpack.dist.config.js"
  },
</code></pre>

<p>the scripts <code>start</code> and <code>test</code> works as expected but when running <code>npm build</code> in terminal I'm getting nothing:</p>

<pre><code>➜  client git:(master) ✗ npm build
➜  client git:(master) ✗ 
</code></pre>

<p>When running the command manually, things happen:</p>

<pre><code>➜  client git:(master) ✗ webpack --config webpack.dist.config.js
Hash: 9274a04acd39605afc25
Version: webpack 1.9.10
Time: 5206ms
    Asset     Size  Chunks             Chunk Names
bundle.js  5.23 MB       0  [emitted]  main
   [0] multi main 28 bytes {0} [built]
 [349] ../config.js 181 bytes {0} [built]
    + 413 hidden modules
➜  client git:(master) ✗ 
</code></pre>

<p>Have I miss understod how npm scripts are suppose to work?</p>
