Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Latest commit

 

History

History
38 lines (27 loc) · 1.33 KB

readme.md

File metadata and controls

38 lines (27 loc) · 1.33 KB

👔 plugin-env

npm linux windows coverage deps

Set environment variable using process.env.

Install

$ yarn add --dev @start/plugin-env
# or
$ npm install --save-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)
  )
}