From bddb4d52f6f8563cfeca1d1e4c562ca4d3ade1aa Mon Sep 17 00:00:00 2001 From: devuxer Date: Wed, 20 May 2020 15:38:41 -0700 Subject: [PATCH] docs: add multi vars example to README (#240) --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index a6c10e7..3c84e53 100755 --- a/README.md +++ b/README.md @@ -81,6 +81,16 @@ webpack --config build/webpack.config.js The `NODE_ENV` environment variable will be set by `cross-env` +You can set multiple environment variables at a time: + +```json +{ + "scripts": { + "build": "cross-env FIRST_ENV=one SECOND_ENV=two node ./my-program" + } +} +``` + You can also split a command into several ones, or separate the environment variables declaration from the actual command execution. You can do it this way: