diff --git a/gulpfile.js b/gulpfile.js index b2cbe02..0a0583b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -21,7 +21,7 @@ gulp.task("build", ["webpack:build"]); gulp.task("webpack:build", function(callback) { // modify some webpack config options var myConfig = Object.create(webpackConfig); - myConfig.plugins = myConfig.plugins.concat( + myConfig.plugins = (myConfig.plugins || []).concat( new webpack.DefinePlugin({ "process.env": { // This has effect on the react lib size