How to use the just-scripts.sassTask function in just-scripts

To help you get started, we’ve selected a few just-scripts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OfficeDev / office-ui-fabric-react / scripts / tasks / sass.js View on Github external
return (
    name +
    '_' +
    crypto
      .createHmac('sha1', fileName)
      .update(css)
      .digest('hex')
      .substring(0, 8)
  );
}

function getJSON(cssFileName, json) {
  _fileNameToClassMap[path.resolve(cssFileName)] = json;
}

exports.sass = sassTask(createTypeScriptModule, [modules]);