Compile the grafana

when I change the Front-end code,then how to build the grafana in the mode of the production?

Have you tried https://grafana.com/docs/project/building_from_source/ ?

Antony.