Home > purgecss > ContentCache > set
ContentCache.set() method
Store the selectors of a file. The entry is removed when its selectors reject, or once they resolve when the file was modified or changed less than 2 seconds before ContentCacheEntry.checkedAt.
Signature:
set(filePath: string, entry: ContentCacheEntry): void;
Parameters
Parameter | Type | Description |
|---|---|---|
filePath | string | path of the content file |
entry | selectors of the file and what they were extracted from |
Returns:
void
