sass-hash
v1.0.1
Published
Runs lib-sass but hashes the file output to bust cache
Downloads
2
Readme
sass-hash
Hashes your SASS for maximum Cache
Requires node-sass!
npm i node-sass sass-hash
const sassHash = require("sass-hash");
const cssPath = path.join(__dirname, "./assets/rendered/");
sassHash.findCssFile(cssPath)
.then(cssFile => {
const cssPath = `/assets/rendered/${cssFile}`;
})
.catch(error => {throw error; });
or .. via CLI
sass-hash --output-style compressed app/assets/scss/app.scss app/assets/rendered/style
sass-hash [options] <input> <output>
Options
right now im only supporting output-style.. i'll get the rest of node-sass's stuff working