Green’s Dictionary of Slang

chile n.

also chile-bean, chili, chili-bean
[the SE chile-/chili-pepper, a stereotypically popular Mexican food]

a derog. term for a Mexican.

[US]R.F. Adams Cowboy Lingo 198: To the cowboy a Mexican was a ‘greaser,’ [...] ‘chili,’ ‘chili-eater,’ or ‘bean-eater’.
[US]Maledicta II:1+2 (Summer/Winter) 154: Chile Bean See Bean.
[US]E. Folb Runnin’ Down Some Lines 232: chili bean See bato.
[US]Maledicta VII 24: One of the peppers, of course, is chili, and Mexicans have also been dubbed chili, chili bean [...] and an alliterative chili chomper.
[US]H. Rawson Dict. of Invective (1991) 228: Chili or chili eater, a Mexican (members of the Border Patrol are sometimes known as chili chasers).

In phrases