From cffe603ccd2fcf7e5a70b868b07622603a48f16a Mon Sep 17 00:00:00 2001 From: Max <9345272+maxshuty@users.noreply.github.com> Date: Fri, 20 Dec 2019 12:34:15 -0600 Subject: [PATCH] Updating deployment.md with Windows settings This add's more clarity for Windows users for an easy way to set the NODE_ENV variables without headache. --- docs/3.0.0-beta.x/guides/deployment.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/3.0.0-beta.x/guides/deployment.md b/docs/3.0.0-beta.x/guides/deployment.md index 0fd8a43834..6e73b9c125 100644 --- a/docs/3.0.0-beta.x/guides/deployment.md +++ b/docs/3.0.0-beta.x/guides/deployment.md @@ -55,6 +55,16 @@ NODE_ENV=production yarn build NODE_ENV=production npm run build ``` +::: tab Windows + +```bash +npm install cross-env +``` +Then in your `package.json` scripts section: +```bash +"production": "cross-env NODE_ENV=production npm run build" +``` + ::: :::: @@ -77,6 +87,16 @@ NODE_ENV=production yarn start NODE_ENV=production npm start ``` +::: tab Windows + +```bash +npm install cross-env +``` +Then in your `package.json` scripts section: +```bash +"production": "cross-env NODE_ENV=production npm start" +``` + ::: ::::