aboutsummaryrefslogtreecommitdiff
path: root/node_modules/postcss-reduce-idents/dist/lib/cache.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/postcss-reduce-idents/dist/lib/cache.js')
-rw-r--r--node_modules/postcss-reduce-idents/dist/lib/cache.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/postcss-reduce-idents/dist/lib/cache.js b/node_modules/postcss-reduce-idents/dist/lib/cache.js
new file mode 100644
index 00000000..ccbdcfc6
--- /dev/null
+++ b/node_modules/postcss-reduce-idents/dist/lib/cache.js
@@ -0,0 +1,15 @@
+"use strict";
+
+exports.__esModule = true;
+
+exports.default = function (value, encoder, cache) {
+ if (cache[value]) {
+ return;
+ }
+ cache[value] = {
+ ident: encoder(value, Object.keys(cache).length),
+ count: 0
+ };
+};
+
+module.exports = exports["default"]; \ No newline at end of file