https://github.com/khalidhoffman/sass-cache
selector-scoped cache functionality for node-sass
https://github.com/khalidhoffman/sass-cache
sass sass-library
Last synced: 5 months ago
JSON representation
selector-scoped cache functionality for node-sass
- Host: GitHub
- URL: https://github.com/khalidhoffman/sass-cache
- Owner: khalidhoffman
- Created: 2016-12-31T19:51:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-31T20:16:58.000Z (over 9 years ago)
- Last Synced: 2025-08-22T13:33:46.099Z (10 months ago)
- Topics: sass, sass-library
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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