Skip to content

site/purgecss

Finds selectors in the built stylesheets that no page or script uses.

Part of the site configuration, at the recommended level. It runs at the push stage, once per scope. It runs purgecss. It needs a build of the project.

Visitors download an unused selector, and maintainers still read it.

Delete the rule, or list a name a script adds at run time under tools.purgecss.safelist with a reason.

A built .unused-banner selector that no page or script uses reports a finding. Delete the rule, or list a class that a script adds under tools.purgecss.safelist with a reason.

Turn it off for some files, with a reason:

gspot ignore site/purgecss --paths "<glob>" --reason "<why>"