Is there a way to switch from development mode to production using our own bundler?
lriho opened this issue · 1 comments
Describe the feature request
It has been reported that from v7.11.1 this issue came back. I can confirm it happens in v7.15.1. Even in production environment it says
The Okta Sign-In Widget is running in development mode.
When you are ready to publish your app, embed the minified version to turn on production mode.
See: https://developer.okta.com/code/javascript/okta_sign-in_widget#cdn
And while we appreciate the tip of using a minified version provided, we'd prefer to minify it using our own bundlers for various reasons @fredsvanelli specified.
So my question is, is there a way to trigger production mode programmatically? I've seen some DEBUG global variable in the source code, but was unable to provide it to the module. If not, can this be added perhaps in the new OktaSignIn() configOptions or even automatically detecting process.env.NODE_ENV === 'production'
?
New or Affected Resource(s)
Okta signin widget
Provide a documentation link
https://developer.okta.com/code/javascript/okta_sign-in_widget#cdn
Additional Information?
No response
Thanks for reporting the issue! Internal Ref: OKTA-697130