Skip to content

Commit

Permalink
Merge pull request #38 from mrsteele/feature/resolvingSysVars
Browse files Browse the repository at this point in the history
fix: simply systemvars.
  • Loading branch information
mrsteele authored Feb 28, 2017
2 parents 17fae87 + f26120d commit f989f68
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ class Dotenv {
console.warn('dotend-webpack: "options.sample" is a deprecated property. Please update your configuration to use "options.safe" instead.')
}

let vars = (options.systemvars) ? Object.assign({}, process.env) : {}
let vars = {}
if (options.systemvars) {
Object.keys(process.env).map(key => {
vars[key] = JSON.stringify(process.env[key])
})
}

const env = this.loadFile(options.path)

let blueprint = env
Expand Down

0 comments on commit f989f68

Please sign in to comment.