# Recipes

# Optimize your command

  • Edit /path/to/project/package.json:
{
  // ...
  "scripts": {
    "dev": "gulp",
    "prod": "gulp --production"
  }
  // ...
}
  • For silent mode
{
  // ...
  "scripts": {
    "dev": "gulp --silent",
    "prod": "gulp --silent --production"
  }
  // ...
}

gulp --production alias: gulp -p

Then, you can run the command like this:

  • For development
yarn run dev
# OR
npm run dev
  • For production
yarn run prod
# OR
npm run prod
Last Updated: 11 days ago