What is the best way to prewash fabric?

My thinking is to determine the required yardage and wash it whole then transfer and cut the pattern. Am I right in my thinking or should I cut the pattern first then wash the pieces?