1.0.0 • Published 5 years ago
aka-cra-plugins v1.0.0
aka-cra-plugins
Install
npm install --save aka-cra-pluginsFeatures
- Customize override environments
- Support nightly environments
- Support staging environmentsInstall
- Install aka-cra-plugins
npm install aka-cra-pluginsHow it work
Override process env
- Declare override:
import { overrideProcessEnv } from "aka-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
1.0.0
5 years ago
