@caviar/sandbox-env-plugin

2.0.1 • Public • Published

Build Status Coverage

@caviar/sandbox-env-plugin

Caviar plugin to allow the sanbox to inherit extra environment variables from the current process

Install

$ npm i @caviar/sandbox-env-plugin

Usage

const EnvPlugin = require('@caviar/sandbox-env-plugin')

module.exports = {
  caviar: {
    plugins: [
      // Allow sandbox to inherit `process.env.REDIS_HOST` of the parent process.
      new EnvPlugin(['REDIS_HOST'])
    ]
  }
}

License

MIT

Package Sidebar

Install

npm i @caviar/sandbox-env-plugin

Weekly Downloads

3

Version

2.0.1

License

MIT

Unpacked Size

4.07 kB

Total Files

5

Last publish

Collaborators

  • kael