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 > ContentCacheEntry

ContentCacheEntry interface

Selectors extracted from a content file, along with what they were extracted from

Signature:

export interface ContentCacheEntry extends ContentFileStats 

Extends: ContentFileStats

Properties

Property

Modifiers

Type

Description

checkedAt

number

time, Date.now(), right before the file was stat. When the file was modified or changed less than 2 seconds before, the entry is only shared while the file is being read and extracted, and is removed once it is done.

extractor

ExtractorFunction

extractor function used to extract the selectors

selectors

Promise<ExtractorResultSets>

selectors extracted from the file. The promise is stored as soon as the file starts being read, so that runs at the same time share the work.