If you run gulp from NPM, for example, using npm run build "or something
(This only works for gulp triggers using NPM)
process.env.npm_package_Object
this should be separated by an underscore for deeper objects.
if you want to read some specific configuration in package.json how do you want to read the configuration object you created in package.json
scripts : { build: gulp }, config : { isClient: false. }
then you can use
process.env.npm_package_**config_isClient**
Manasvi Sareen Dec 16 '17 at 10:55 2017-12-16 10:55
source share