I tackled this very problem today. Since we have Final Builder handling our builds, I just created a FileSet in that with a bunch of exclusions, and then a later step in my build script copies those files to my deployment target folder.
You could reproduce the same result by just using xcopy excluding the file types you don't need on your web server.
Antony Scott
2010-07-01 16:53:10