Get the Broccoli build environment from BROCCOLI_ENV
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
CHANGELOG.md
LICENSE
README.md
index.js
package.json

README.md

broccoli-env

Get the environment (development or production) from the BROCCOLI_ENV environment variable.

Installation

npm install --save-dev broccoli-env

Usage

var env = require('broccoli-env').getEnv();
console.log(env) // => 'development' or 'production'