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

Package detail

@start/plugin-env

deepsweet36MIT2.0.0TypeScript support: included

👔 Set environment variable using process.env

tasks, runner, start, start-plugin

readme

👔 plugin-env

Set environment variable using process.env.

Install

$ yarn add --dev @start/plugin-env

Usage

Signature

env(vars: { [key: string]: any })

Example

import sequence from '@start/plugin-sequence'
import env from '@start/plugin-env'
import webpack from '@start/plugin-webpack'

export task = async () => {
 const { default: webpackConfig } = await import('./webpack-config')

  return sequence(
    env({ NODE_ENV: 'production' }),
    webpack(webpackConfig)
  )
}