From 4bd9d454da4b60ed52cb0a1d2762050457ce2393 Mon Sep 17 00:00:00 2001 From: ericrav Date: Thu, 31 Aug 2017 09:47:32 -0400 Subject: [PATCH] move json.stringify to webpack from env config file --- webpack.config.js | 4 ++-- webpack.production.config.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index af21e72..2ffb06b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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(), diff --git a/webpack.production.config.js b/webpack.production.config.js index a37614d..4df4846 100644 --- a/webpack.production.config.js +++ b/webpack.production.config.js @@ -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(),