It is safe to breastfeed when you have a herpes outbreak as long as you do not have any lesions present on your breasts; make sure to cover all the exposed lesions, and wash your hands thoroughly.
Related posts:
What does a Herpes Lesion look like?
Can you get Herpes from Oral Sex?
I have Herpes, what is the risk of contracting another sexually transmitted infection?
Can one have a test for Genital Herpes?
Can herpes cause sterility?
Can you get herpes from using a hot tub or swimming pool with someone who has herpes?