[1]http://www.telegraph.co.uk/business/2017/01/25/boeing-soars-...
"In the second quarter of 2015, Boeing lost $25 million on each 787 delivered but was planning to break-even per plane before the year end. After that Boeing hopes to build 900 Dreamliners over six years at an average profit of more than $35 million each. But with deferred costs peaking in 2016 at $33 billion, Leeham analyst Bjorn Fehrm considers Boeing can't make an overall profit on the program. Ted Piepenbrock, an academic affiliated with the MIT and the University of Oxford, projects losses decreasing through the first 700 airliners, forecast the cumulative deferred costs to peak beyond $34 billion and its model most favorable to Boeing projects a program loss of $5 billion after delivering 2,000 Dreamliners. Boeing’s original development investment, estimated at least at a further $20 billion, isn't included in these costs.[177]"
At the time the Dreamliner was being announced people were initially underwhelmed by the proposal but Boeing persisted and tried to impress upon the aviation industry that they had made the right choice. I don't think at the time everyone thought the Dreamliner was the best answer to the A380.