This.
I plowed through Legends when it was released on Netflix about a month ago and I'm currently five episodes into Flash. The Legends piece of the Invasion! worked decently enough for me and I didn't feel like I was missing a whole lot without seeing everything before it. But YMMV.