Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@caviar/sandbox-env-plugin

caviarjs112MIT2.0.1

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

@caviar/plugin-sandbox-env, caviar-plugin, caviar

readme

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

changelog

History