webpack-dotenv-plugin
Advanced tools
Comparing version 2.0.0 to 2.0.2
@@ -13,4 +13,8 @@ const dotenv = require('dotenv-safe'); | ||
dotenv.config(options); | ||
this.example = dotenv.parse(fs.readFileSync(options.sample)); | ||
this.env = dotenv.parse(fs.readFileSync(options.path)); | ||
this.env = {}; | ||
if (fs.existsSync(options.path)) { | ||
this.env = dotenv.parse(fs.readFileSync(options.path)); | ||
} | ||
} | ||
@@ -17,0 +21,0 @@ |
{ | ||
"name": "webpack-dotenv-plugin", | ||
"version": "2.0.0", | ||
"version": "2.0.2", | ||
"description": "Use dotenv with webpack.", | ||
@@ -29,3 +29,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"dotenv-safe": "^2.3.1" | ||
"dotenv-safe": "^4.0.4" | ||
}, | ||
@@ -32,0 +32,0 @@ "peerDependencies": { |
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
31
3888
5
+ Addeddotenv@4.0.0(transitive)
+ Addeddotenv-safe@4.0.4(transitive)
- Removeddotenv@2.0.0(transitive)
- Removeddotenv-safe@2.3.3(transitive)
Updateddotenv-safe@^4.0.4