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