Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fs.readFile(relative, function (err, contents) {
/* istanbul ignore if */
if (err) {
reject(err)
return
}
var root
if (ext === '.sss') {
root = sugarss.parse(contents, { from: relative })
} else {
root = postcss.parse(contents, { from: relative })
}
root.walkAtRules('define-mixin', function (atrule) {
defineMixin(result, mixins, atrule)
})
resolve()
})
} else {