flatten entry app to avoid build error

This commit is contained in:
Sébastien Chopin 2016-12-27 14:53:36 +01:00
parent f82bde9d1c
commit a4c28ac52b
1 changed files with 1 additions and 1 deletions

View File

@ -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()