PurgeCSSPurgeCSS
API Reference
  • English
  • Français
GitHub
API Reference
  • English
  • Français
GitHub
  • PurgeCSS

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

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

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

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

Home > purgecss > PurgeCSS > contentCache

PurgeCSS.contentCache property

Cache of the selectors extracted from the content files. When set, a content file is only read and extracted again if it changed since the cache got its selectors, see ContentCache. The same cache can be set on several PurgeCSS instances, running one after the other or at the same time.

Signature:

contentCache?: ContentCache;

Default Value

undefined, the content files are read on every run