Alfie Devine scored twice to inspire Preston North End to a 3-1 home win over Stoke City on Friday night.