From the fan, run the wires to the light and inside the lights box tie all the whites together with a properly sized wire nut, all the blacks together likewise, and all the greens/bare copper together.
This isn't something usually done at the switch unless the fan & light are currently on seperate switches already OR you want the ability to later put them on 2 seperate switches.
This isn't something usually done at the switch unless the fan & light are currently on seperate switches already OR you want the ability to later put them on 2 seperate switches.