How to dynamically load icons? #2765
Answered
by
gloriliale
twilio-jyoung
asked this question in
Q&A
-
I am building content in a CMS, and need to be able to allow users to pick the Icons they would like to use. Can you add a code sample to the docs that just takes the icon name as a parameter and lazy loads the icon? I was able to get it working, but with boatloads of warnings. paste-icon-loader.js
another-file.js
|
Beta Was this translation helpful? Give feedback.
Answered by
gloriliale
Oct 25, 2022
Replies: 1 comment 6 replies
-
Hi @twilio-jyoung! It looks like twilio-flex.min.js is loading in d.ts files. Is there a reason those are being bundled into your build and loaded into the browser? |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
TheSisb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @twilio-jyoung! It looks like twilio-flex.min.js is loading in d.ts files. Is there a reason those are being bundled into your build and loaded into the browser?