oenv
It writes a temporary file to override some environment variables in building time. It creates a oenv.js
file as default which contains some values specified by a command line.
Install
$ yarn add -D oenv
Usage
"script":
If you run a env:dev
command, it will create a oenv.js
file like this.
// This file is auto-generated: #timestamp#processenvSTAGE = "dev";processenvFOO = "BAR";
Options
-o | --output
Specifies an output file name. Usesoenv.js
as default.-d | --outputDir
Specifies an output directory. Uses.
as default.-v | --verbose
Prints all contents inoenv.js
intoconsole.log
.