Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/khalidhoffman/sass-cache
- Owner: khalidhoffman
- Created: 2016-12-31T19:51:20.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-31T20:16:58.000Z (about 8 years ago)
- Last Synced: 2024-12-02T04:14:07.980Z (about 1 month ago)
- Topics: sass, sass-library
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- 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