Skip to content

Commit

Permalink
move json.stringify to webpack from env config file
Browse files Browse the repository at this point in the history
  • Loading branch information
ericrav committed Aug 31, 2017
1 parent 1f37455 commit 4bd9d45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ module.exports = {
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('development'),
'PUSHER_KEY': config.PUSHER_KEY,
'SERVER_URL': config.SERVER_URL
'PUSHER_KEY': JSON.stringify(config.PUSHER_KEY),
'SERVER_URL': JSON.stringify(config.SERVER_URL)
}
}),
new webpack.HotModuleReplacementPlugin(),
Expand Down
4 changes: 2 additions & 2 deletions webpack.production.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ module.exports = {
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('production'),
'PUSHER_KEY': config.PUSHER_KEY,
'SERVER_URL': config.SERVER_URL
'PUSHER_KEY': JSON.stringify(config.PUSHER_KEY),
'SERVER_URL': JSON.stringify(config.SERVER_URL)
}
}),
new webpack.HotModuleReplacementPlugin(),
Expand Down

0 comments on commit 4bd9d45

Please sign in to comment.