This post has the answer enableProdMode() question
It’s detailed in the docs under Config Property
Hope this helps!