Use uglify and cssmin's preserve comment feature to preserve comments.