twbs / twbs/bootstrap

Purge CSS standalone application

Open
#41,530 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

docs enhancement feature
Dominant language
MDX
Stars
175k
Forks
78.6k
Avg merge
7h 19m
Merged PRs (30d)
35

Description

Prerequisites
Proposal

According to PageSpeed there is significant CSS bloat in my website. This is bad for SEO and also increases download time and computational requirements and memory requirements for my website.

Motivation and context

I ran my homepage through Purify CSS Online. Purify CSS indicated that 84% of the CSS provided by Bootstrap 5.3.6 is unnecessary. Purifying my CSS file would reduce it from 226 kB down to 37 kB.

My suggested resolution is a single executable file that performs the same function as Purify CSS. This could be used as part of the build process for many static site generators such as Zola and Hugo.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository file or test. Start by reviewing Bootstrap's build process and the Purify CSS comparison described in the issue; clarify the intended input, output, and supported static-site workflows. Done would require an agreed standalone executable scope and validation, but no acceptance test is provided.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.