npm.io
1.0.1 • Published 8 years agoCLI

sass-hash

Licence
ISC
Version
1.0.1
Deps
2
Size
14 kB
Vulns
1
Weekly
0

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