How to use the node-sass.promise function in node-sass

To help you get started, we’ve selected a few node-sass 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 syntaxhighlighter / syntaxhighlighter / build / bundle.js View on Github external
    .then(data => sass.promise.render({ data, includePaths: [`${rootPath}/node_modules/theme-base`] }))
    .then(results => fs.promise.writeFile(`${outputPath}/theme.css`, results.css))
github syntaxhighlighter / syntaxhighlighter / build / bundle.js View on Github external
    .then(data => sass.promise.render({ data, includePaths: [`${rootPath}/node_modules/@alexgorbatchev/theme-base`] }))
    .then(results => fs.promise.writeFile(`${outputPath}/theme.css`, results.css))