When called with: path.resolve(__dirname, '../../build/bundle-statistics.html') an endless loop is caused, compilation never ends. When a relative path is used, this is not happening.
Happens on Windows. Path in question became Z:\Dev\financial-app\build\...