Add config generation before compile task.