-
Notifications
You must be signed in to change notification settings - Fork 856
Open
Description
Summary
As part of the EuiIcon refactor initiative, we want to separate SVG icon assets and generated icon components (with svgr) from EuiIcon sources.
While this isn't mandatory from performance or bundler support perspectives, it'll allow us to separate concerns, cache built icons locally between runs, version them separately, create multiple icon bundles, and much more. That being said, this issue shouldn't be worked on until all other issues from the epic are complete.
Acceptance criteria
- A new
icons
package is created inpackages/icons
(@elastic/eui-icons
) - All icon assets are moved from
packages/eui/src/components/icon/svgs
andpackages/eui/src/components/icon/assets
to the icons package - The
compile-icons
script (including related dependencies and configuration files) should be moved topackages/icons
and renamed tobuild
- Built icons should live inside the
packages/icons/dist
directory - EuiIcon should be updated to import icons from the new package instead of the assets directory
Metadata
Metadata
Assignees
Labels
No labels