targetenv
v1.0.0
Published
What's the build target?
Downloads
139
Readme
targetenv.js
This module is for doing things conditionally based on the environment you're
targeting. It uses the build tool itself (browserify, webpack) instead of
relying on examining the environment (for example, module.exports
, etc).
Usage
var targetEnv = require('targetenv');
if (targetEnv.isBrowser) {
// Do something.
}
Properties
How
The module's package.json tells your build tool (browserify, webpack) to use a different entry point (which can be examined).