I have 2 main build configurations - dev and prod. 
I push updates to a heroku server that run npm install --production to install my app.
In the package.json I have the following segment:

```
"scripts": {
    "postinstall": "make install"
}

```

that runs a make file that is responsible for uglifying the code and some other minor things.

However, I don't need to run this makefile in development mode. Is there any way to conditionally run scripts with npm?.. 

Thanks!