Skip to content

Commit

Permalink
Treat each entry as a seperate JSON string
Browse files Browse the repository at this point in the history
Should fix mrsteele#34
  • Loading branch information
Piers Roberts committed Feb 9, 2017
1 parent a183221 commit e1fb62a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ class Dotenv {
if (!value && options.safe) {
throw new Error(`Missing environment variable: ${key}`)
} else {
vars[key] = value
vars[key] = JSON.stringify(value)
}
})

return new DefinePlugin({
'process.env': JSON.stringify(vars)
'process.env': vars
})
}

Expand Down

0 comments on commit e1fb62a

Please sign in to comment.