PurgeCSSPurgeCSS
API Reference
GitHub
API Reference
GitHub
  • PurgeCSS

    • About PurgeCSS
    • Getting Started
    • Configuration
    • Command Line Interface
    • Programmatic API
    • Safelisting
    • Extractors
  • Plugins

    • PostCSS
    • Webpack
    • Gulp
    • Grunt
    • Gatsby
  • Guides

    • Vue
    • React
    • Next.js
    • Nuxt.js
    • Razzle
    • WordPress
    • Hugo
  • Comparison
  • Common Questions

    • How to use with CSS modules
    • How to use with Ant Design

Home > purgecss-from-pug

purgecss-from-pug package

Pug extractor for PurgeCSS

A PurgeCSS extractor for PUG files that automatically generates a list of used CSS selectors. This extractor can be used with PurgeCSS to eliminate unused CSS and reduce the size of your production builds.

Functions

Function

Description

purgeCSSFromPug(content)

Get the potential selectors from Pug code

Edit this page