1.0.1 • Published 6 years ago

sass-hash v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

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