octopus-cra-plugins
Install
npm install --save octopus-cra-plugins
Features
- Customize override environments
- Support nightly environments
- Support staging environments
Install
- Install octopus-cra-plugins
npm install octopus-cra-plugins
How it work
Override process env
- Declare override:
import { overrideProcessEnv } from "octopus-cra-plugins";
overrideProcessEnv(workDir, true);
-
Env file
.env.nightly
-
Script:
npm run react-scripts build --cra-env nightly
Options
# | Name | Description | Default |
---|---|---|---|
1 | workDir | Working directory path, environments directory path | Process working directory |
2 | replace | Is hard replace properties, else soft merge | false |
LICENSE
MIT