ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit 04f0a327a7aa8d6a4b08218ee1c12441592e574e
parent 243c60ce05414ddf0cacdef8f555d66ad5866f1e
Author: Sergey Zelenov <github@zelenov.su>
Date:   Thu, 13 Aug 2015 20:19:29 +0300

fix problem with global define

Lodash mutate source object while merge it.
https://lodash.com/docs#merge
Diffstat:
Mtools/config.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/config.js b/tools/config.js @@ -115,7 +115,7 @@ const appConfig = merge({}, config, { devtool: DEBUG ? 'source-map' : false, plugins: [ ...config.plugins, - new DefinePlugin(merge(GLOBALS, {'__SERVER__': false})), + new DefinePlugin(merge({}, GLOBALS, {'__SERVER__': false})), ...(DEBUG ? [] : [ new webpack.optimize.DedupePlugin(), new webpack.optimize.UglifyJsPlugin({compress: {warnings: VERBOSE}}), @@ -166,7 +166,7 @@ const serverConfig = merge({}, config, { devtool: DEBUG ? 'source-map' : 'cheap-module-source-map', plugins: [ ...config.plugins, - new DefinePlugin(merge(GLOBALS, {'__SERVER__': true})), + new DefinePlugin(merge({}, GLOBALS, {'__SERVER__': true})), new BannerPlugin('require("source-map-support").install();', { raw: true, entryOnly: false }) ],