Is there a command line a utility to add only required icons in specified folder? #522
Replies: 1 comment 1 reply
-
Hey Naveen, that's a great observation and an excellent question! The short answer is: No, there isn't a special command-line utility to pull only specific icons. This is handled automatically during the build process by a technique called "Tree Shaking". How it WorksModern JavaScript bundlers, like Vite or Webpack (which are used in Medusa's storefront), are smart enough to detect which code is actually being used.
This is why it appears as if only the required icons are in the package—because, in the final output, they are! Regarding the
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was going through the code of store front. In here, I found that icons package has only required icons with only size props value varying.
Is there a command line utility to pull only specific icons? Or Was this manually added from medusa icons package?
Beta Was this translation helpful? Give feedback.
All reactions