Have you tried this?
Refer public/build.json of erpnext and frappe.
Also checkout https://discuss.frappe.io