creature-features
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "creature-features", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Feature flags for node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -37,2 +37,18 @@ # Creature Features | ||
``` | ||
### In Webpack | ||
``` | ||
const features = require('creature-features')(); | ||
const webpack = require('webpack'); | ||
const featureFlags = new webpack.DefinePlugin({ | ||
FEATURES: features | ||
}); | ||
module.exports = { | ||
plugins: [featureFlags], | ||
... | ||
// in a ui file | ||
if (FEATURES.FeatureOne) | ||
``` | ||
### Why? | ||
@@ -39,0 +55,0 @@ * [They are useful](http://code.flickr.net/2009/12/02/flipping-out/) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9478
65