Skip to content

Instantly share code, notes, and snippets.

@handleman
Last active December 3, 2018 13:32
Show Gist options
  • Save handleman/9cb2f527c4efa82722cc77ecbe7bfa04 to your computer and use it in GitHub Desktop.
Save handleman/9cb2f527c4efa82722cc77ecbe7bfa04 to your computer and use it in GitHub Desktop.
How to execute several commands in one alias inside package.json . How to set environment variables inside package.json. Several commands in one in package json.
{
"scripts": {
"start": "webpack --config webpack.prod.js && node prod-server",
"dev": "export NODE_ENV='development' && export API_HOSTNAME='http://api.localhost:8000'"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment