Electoral college was designed to do that in theory, and I believe it worked for awhile. But since then (over a hundred years ago) the electoral college itself draws the same attention to the states with the most electoral votes.
The easiest way to address this issue is to make the electoral college votes from each state proportional to the votes cast for different candidates within that state. Winner takes all in any state is silly and not representative.
Cogito, ergo armatum sum