How to detect whether a cook/pack is targeting Shipping or Development?

I have some resource files that are only needed cook for Development builds, and I want to exclude them from Shipping.

  1. Is there a recommended/official way to determine the target configuration (Shipping/Development) during cook/pack?
  2. Is there a recommended/official to exclude assets

assets are standalone content assets or OFPA Actors