title: How to run bash script after webpack build in npm
body: <p>I have having trouble chaining scripts in npm. I am using webpack, running a build script then would like to run a bash file after. Both commands are working, but not if chaining them.</p>
  
  <p>In my package.json I have this:</p>
  
  <pre><code>"scripts": {
      "build-staging": "webpack --config webpack-staging.config.js -p || ./build-staging.sh"
    },
  </code></pre>
  
  <p>If I run <code>npm run build-staging</code> it webpack runs the build and works fine. It does not run my <code>build-staing.sh</code> however. If I manually run this bash file it runs, so my issue is having it chain and run after the webpack script is finished. I've seen that the pipe <code>||</code> should do this, but no luck.</p>
  
  <p>Am I doing the pipe wrong, or does the bash script not run because webpack does not 'kill' the script once finished? I am not able to run any more commands unless I use Crtl+C, maybe that's the issue?</p>
  
  <p>Thanks!</p>