1.0.2 • Published 5 years ago
octopus-cra-plugins v1.0.2
octopus-cra-plugins
Install
npm install --save octopus-cra-pluginsFeatures
- Customize override environments
- Support nightly environments
- Support staging environmentsInstall
- Install octopus-cra-plugins
npm install octopus-cra-pluginsHow it work
Override process env
- Declare override:
import { overrideProcessEnv } from "octopus-cra-plugins";
overrideProcessEnv(workDir, true);Env file
.env.nightlyScript:
npm run react-scripts build --cra-env nightlyOptions
| # | 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
