Skip to content

CSS tree shaking#14618

Draft
bep wants to merge 1 commit intogohugoio:masterfrom
bep:feat/cssfilter
Draft

CSS tree shaking#14618
bep wants to merge 1 commit intogohugoio:masterfrom
bep:feat/cssfilter

Conversation

@bep
Copy link
Copy Markdown
Member

@bep bep commented Mar 13, 2026

Building the full Bootstrap NPM bundle with this patch:

Options Output size
Default 280 KB
Default gzipped 34 KB
Default minified 230 KB
Default minified gzipped 31 KB
Treeshaken 33 KB
Treeshaken gzipped 6.5 KB
Treeshaken minified 29 KB
Treeshaken minified gzipped 6.2 KB

Project/branch used for testing: https://github.com/bep/hugo-starter-bootstrap-basic/tree/pocprune

@bep bep force-pushed the feat/cssfilter branch 7 times, most recently from f6f9111 to 38b0024 Compare March 16, 2026 12:32
@bep bep changed the title poc: CSS purging CSS tree shaking Mar 16, 2026
@bep bep force-pushed the feat/cssfilter branch from 38b0024 to 6a30889 Compare March 16, 2026 18:41
@bep
Copy link
Copy Markdown
Member Author

bep commented Mar 16, 2026

Upstream issue: evanw/esbuild#4419

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant