The fact that she knew she was going to lose became apparent when she canceled the planned victory fireworks display in New York City. That was about a week before the election. The story was not highly publicized, and her campaign gave the face-saving excuse that the NYC fire department nixed the display due to fire concerns. But it was obvious that the real reason was that she would have been celebrating Donald Trump’s victory.
President Trump has pointed this out in tweets, but anyone with half a brain knew what was going on before he tweeted it.
I read that the fireworks company demanded half payment up front and the campaign wasn’t about to do that.