Have ideas to improve npm?Join in the discussion! »

    octopus-cra-plugins
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    octopus-cra-plugins

    NPM version npm download

    Install

    octopus-cra-plugins

    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

    Install

    npm i octopus-cra-plugins

    DownloadsWeekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    9.28 kB

    Total Files

    8

    Last publish

    Collaborators

    • avatar