-
Notifications
You must be signed in to change notification settings - Fork 156
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
feat(minify shadowroots): add rollup-plugin-minify-html-literals #11207
base: main
Are you sure you want to change the base?
feat(minify shadowroots): add rollup-plugin-minify-html-literals #11207
Conversation
Deploy preview created for package Built with commit: 1edf75316f26caa3a73ec69f7708a50429c8faf5 |
There's a change needed to the table-of-contents component. See here |
…-ibm-dotcom into feat/minfy-html-v2
Deploy preview created for package Built with commit: 1edf75316f26caa3a73ec69f7708a50429c8faf5 |
Deploy preview created for package Built with commit: 1edf75316f26caa3a73ec69f7708a50429c8faf5 |
@marcelojcs make sure to run
|
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.
I added the test: CDN preview tag and closed / reopened to get that build triggered so we can compare bundle sizes.
Otherwise, just minor notes from a static code review.
Will come back and look at the build results when ready.
Deploy preview created for package Built with commit: 1edf75316f26caa3a73ec69f7708a50429c8faf5 |
Now that the deploy preview is done, I don't actually see a difference in bundle size. Perhaps I should be checking some other way? Examples I looked at: https://1.www.s81c.com/common/carbon-for-ibm-dotcom/version/v2.0.0/search.min.js https://1.www.s81c.com/common/carbon-for-ibm-dotcom/version/v2.0.0/filter-panel.min.js In both examples the bundles are the same size 🤷. |
The impact of this change likely won't reflect in bundle sizes, but should appear in total node counts. Card Group with Card-In-Card demos: |
Note that the above comment is only testing the rollup changes which affect the CDN assets, not the gulp changes that impact the npm packages. |
Deploy preview created for package Built with commit: 1edf75316f26caa3a73ec69f7708a50429c8faf5 |
@@ -70,8 +70,10 @@ | |||
"@babel/runtime": "^7.16.3", | |||
"@carbon/styles": "1.47.0", | |||
"flatpickr": "4.6.1", | |||
"gulp-minify-html-literals": "^1.1.22", |
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.
This package doesn't seem to exist. Is this the one you meant to include?
Also, is this PR a duplicate of #11207? |
This PR is #11207. Do you mean #11216? #11216 is against the |
The This PR is also on hold, pending the project's update to Lit v3 because that version seems to have scooped up the underlying |
Related Ticket(s)
Jira ticket
Description
Adds rollup-plugin-minify-html-literals to the build pipeline. This minifies the HTML resulting from each component's render() function.
Changelog
Changed