Change config with fig.to_html()

Is it possible to change the config using fig.to_html()?
The method shown in documentation only works with fig.show(config={}).

Thanks!