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

View File

@ -276,7 +276,7 @@ function getWebpackServerConfig () {
function createWebpackMiddlewares () { function createWebpackMiddlewares () {
const clientConfig = getWebpackClientConfig.call(this) const clientConfig = getWebpackClientConfig.call(this)
// setup on the fly compilation + hot-reload // 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( clientConfig.plugins.push(
new webpack.HotModuleReplacementPlugin(), new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin() new webpack.NoErrorsPlugin()