From c2545293b6c3329cdf029d48699dc6f34d84933d Mon Sep 17 00:00:00 2001 From: devuxer Date: Wed, 20 May 2020 14:30:23 -0700 Subject: [PATCH] Add multi vars example to README Addresses documentation request in #62 --- 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: