Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/khalidhoffman/sass-cache

selector-scoped cache functionality for node-sass
https://github.com/khalidhoffman/sass-cache

sass sass-library

Last synced: 25 days ago
JSON representation

selector-scoped cache functionality for node-sass

Awesome Lists containing this project

README

        

# sass-cache
selector-specifc cache functionality for node-sass

## How to install
`npm i sass-cache`

## How to use
```
const sass = require('node-sass'),
sassCache = require('sass-cache');

sass.render({
file: scss_filename,
functions: sassCache.functions
},
function (err, result) {
/*...*/
});
```

## Features
Function Name | Params | Description
--------------|-----------------------------------|----------------
`cache-save` | `selector`, `namespace`, `value` | caches a value for that for the selector and namespace
`cache-load` | `selector`, `namespace` | loads cached value for the selector and namespace