API minify templates on regeneration if live mode activated