Improved asset compilation logic for packaging.