@start/plugin-env
TypeScript icon, indicating that this package has built-in type declarations

2.0.0Β β€’Β PublicΒ β€’Β Published

πŸ‘” 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)
  )
}

Package Sidebar

Install

npm i @start/plugin-env

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

2.93 kB

Total Files

5

Last publish

Collaborators

  • fosimus
  • psxcode
  • deepsweet