envkey-webpack-plugin
Advanced tools
Comparing version 1.1.2 to 2.0.4
{ | ||
"name": "envkey-webpack-plugin", | ||
"version": "1.1.2", | ||
"version": "2.0.4", | ||
"description": "Use envkey as a webpack plugin.", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/envkey/envkey-webpack-plugin.git" | ||
"url": "git+https://github.com/envkey/envkey.git" | ||
}, | ||
@@ -22,10 +22,10 @@ "keywords": [ | ||
], | ||
"author": "Dane Schneider <dane@envkey.com> (https://www.envkey.com)", | ||
"author": "EnvKey <support@envkey.com> (https://www.envkey.com)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/envkey/envkey-webpack-plugin/issues" | ||
"url": "https://github.com/envkey/envkey/issues" | ||
}, | ||
"homepage": "https://github.com/envkey/envkey-webpack-plugin#readme", | ||
"homepage": "https://github.com/envkey/envkey/public/sdks/languages-and-frameworks/envkey-webpack-plugin#readme", | ||
"dependencies": { | ||
"envkey": "^1.2.9" | ||
"envkey": "^2.0.5" | ||
}, | ||
@@ -32,0 +32,0 @@ "peerDependencies": { |
## envkey-webpack-plugin | ||
A webpack plugin that wraps [EnvKey's](https://www.envkey.com) [Node.js library](https://www.github.com/envkey/envkey-node) so you can easily inject whitelisted configuration into your browser apps. | ||
A webpack plugin that wraps [EnvKey's](https://www.envkey.com) [Node.js library](https://www.github.com/envkey/envkey-node) so you can easily inject allow-listed configuration into your browser apps. | ||
All vars will be available on `process.env` in the browser. | ||
To make `process.env.NODE_ENV` available, just add it to the `permitted` whitelist (see below). | ||
To make `process.env.NODE_ENV` available, just add it to the `permitted` allow-list (see below). | ||
@@ -16,4 +16,4 @@ ## Install | ||
```javascript | ||
var webpack = require('webpack'), | ||
EnvkeyWebpackPlugin = require('envkey-webpack-plugin'); | ||
var webpack = require("webpack"), | ||
EnvkeyWebpackPlugin = require("envkey-webpack-plugin"); | ||
@@ -25,14 +25,12 @@ module.exports = { | ||
new EnvkeyWebpackPlugin({ | ||
permitted: ["STRIPE_PUBLISHABLE_KEY", "PUSHER_APP_KEY", "NODE_ENV"], // required, specify allow-list of vars to pull from Envkey -- you can also include "NODE_ENV" to make that available | ||
permitted: ["STRIPE_PUBLISHABLE_KEY", "PUSHER_APP_KEY", "NODE_ENV"], // required, specify whitelist of vars to pull from Envkey -- you can also include "NODE_ENV" to make that available | ||
dotEnvFile: ".env", // optional, specify alternate dotenv file path like ".env.staging" -- file should include valid ENVKEY variable | ||
define: {ANOTHER_VAR: "anotherVal"} // optional, set additional vars on `process.env` | ||
define: { ANOTHER_VAR: "anotherVal" }, // optional, set additional vars on `process.env` | ||
}), | ||
], | ||
}) | ||
] | ||
//... | ||
} | ||
//... | ||
}; | ||
``` |
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
No website
QualityPackage does not have a website.
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
3568
5
2
35
+ Addedenvkey@2.5.1(transitive)
- Removeddotenv@4.0.0(transitive)
- Removedenvkey@1.3.2(transitive)
Updatedenvkey@^2.0.5