From the Campaign Legal Center:
“Under the U.S. Constitution, states have the power to determine how they award their electoral votes in national elections. States are increasingly showing that the will of their voters is to do away with the winner-take-all laws, which award all of its electoral votes to the presidential candidate who receives the most votes within the state. They are signing up for the National Popular Vote Compact.”