-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize SVG assets and update builder interface #5937
Optimize SVG assets and update builder interface #5937
Conversation
…feat/optimize-svg-take-2
Deploy preview for carbon-components-react ready! Built with commit 17c1775 https://deploy-preview-5937--carbon-components-react.netlify.app |
…feat/optimize-svg-take-2
@laurenmrice just a heads up for changes, this is moving the SVG files from |
Deploy preview for carbon-elements failed. Built with commit 91b54bd https://app.netlify.com/sites/carbon-elements/deploys/5ea335925086230007c15e36 |
Deploy preview for carbon-elements ready! Built with commit 17c1775 |
FYI @davidicus this is our PR which updates the entrypoints for the Instead of the flat entrypoint it should now re-export so the Let me know if you want to pair up and try it out in a product or on the IoT library 👀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
@asudoh let me know if there is anything else I can do / write-up to help with reviews! |
Some quick findings:
|
Hey @asudoh! 👋
I don't believe
Yeah! Source files are moved over into |
Just in case it was not clear enough, I was referring to: https://unpkg.com/browse/@carbon/icons@10.10.2/es/chevron--down/index.js
Sounds good, thank you for clarifying. |
@asudoh nice! Got it, thanks for clarifying 🙏 Will make sure to update |
Should be updated now! |
Closes #5568
This PR adds in the ability to optimize SVG assets in the output package directory, alongside including QOL fixes for our builder packages.
This PR also adds in tests for the
icons-vue
package since we ended up needing to update the builder with the new metadata format. A big source of the LOC changes comes from the snapshots generating its public API.Changelog
New
e2e/icons-vue
icons-vue
icon-build-helpers
svg
builder for optimizing SVG assetsoutput
extension, this extension does the following:Changed
svg
assets now live insrc/svg
instead ofsvg
icon-build-helpers
Metadata
now takes in an updatedinput
option for SVG and extension directoriesreact
builder has been updatedvanilla
builder has been updatedRemoved
icon-build-helpers
packageicons-vue
Testing / Reviewing