UNPKG

cssnano

Version:

A modular CSS minifier, built on top of the PostCSS ecosystem.

14 lines (12 loc) • 291 B
/** * * @param {string} value * @param {(value: string, index: number) => string} encoder * @param {Map<string, string>} cache */ function addToCache(value, encoder, cache) { if (!cache.has(value)) { cache.set(value, encoder(value, cache.size)); } } export default addToCache;