This is my production webpack config. The two quotes in the title refer to webpack2 and webpack respectively. Both hang for me with a similar error.
This is my command t
This will also happen if you use indexTransform property and the function is throwing an error. To handle this you can wrap your function in a try/catch;
indexTransform
module.exports = (targetOptions, indexHtml) => { try { ... } catch (error) { console.error(error) process.exit(1) // Kills webpack } }