Open avrilpearl opened 10 months ago
From our side, we can configure the .styles.ts
module to load dynamically only when the controls
prop is set to true, since this font is unnecessary when controls
are not displayed. It will still be included in your bundle, but it won't be requested and loaded in the browser unless you enable the controls
prop.
Alternatively you can exclude the unwanted assets Karla-Regular.woff
through your bundler's configuration.
Hi there, upon compiling the imported dotlottie player - the final js output seems to include a request for a local font file that does not exist - relating to this code: https://github.com/dotlottie/player-component/blob/0687c9bef4a685497a65583da64c86451ed1261b/packages/player-component/src/dotlottie-player.styles.ts#L7
Is it possible to remove this dependency? How can I prevent this from being included in my compiled code if I am importing the player via:
import '@dotlottie/player-component';