Imran Ahmad
1 min readMar 26, 2020

--

Great article Rajesh! However, It would be awesome if you can put some light on environment variables.

All I want is to achieve this:

“scripts”: {

“start:dev”: “webpack-dev-server — env.ENVIRONMENT=development — mode development”,

“start:stag”: “NODE_ENV=staging node -r dotenv/config server.js”,

“start”: “node -r dotenv/config server.js”,

“build:stag”: “webpack — env.ENVIRONMENT=staging — mode production”,

“build”: “webpack — mode production”

}

--

--

Imran Ahmad
Imran Ahmad

Written by Imran Ahmad

Tech enthusiast, product visualiser nothing more or less.

Responses (1)