From a4c28ac52bffbc8c9107e4994d7f3249c67a43c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Tue, 27 Dec 2016 14:53:36 +0100 Subject: [PATCH] flatten entry app to avoid build error --- lib/build/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/build/index.js b/lib/build/index.js index 4e7a8f15dc..4afca04448 100644 --- a/lib/build/index.js +++ b/lib/build/index.js @@ -276,7 +276,7 @@ function getWebpackServerConfig () { function createWebpackMiddlewares () { const clientConfig = getWebpackClientConfig.call(this) // setup on the fly compilation + hot-reload - clientConfig.entry.app = ['webpack-hot-middleware/client?reload=true', clientConfig.entry.app] + clientConfig.entry.app = _.flatten(['webpack-hot-middleware/client?reload=true', clientConfig.entry.app]) clientConfig.plugins.push( new webpack.HotModuleReplacementPlugin(), new webpack.NoErrorsPlugin()