I have a need to pass additional arguments to a task. For example I would like to set a --release flag to trigger build in production mode. Here's how this might look:
"scripts": {
"task": "babel-node node_modules/.bin/start tasks/",
"build": "npm run task build",
"build:prod": "npm run build -- --release"
}
I have a need to pass additional arguments to a task. For example I would like to set a
--release
flag to trigger build in production mode. Here's how this might look: