A small wrapper around node-sass
.
sass-runner
takes two arguments, sass-runner(data, paths)
and returns a Promise
.
a Type: <String>
of sass
an Type: <Array>
of paths that are mapped to includePaths
const data = `
$blue: 'blue';
.test-1 {
color: $blue;
}
`;
run(data, ['./src/scss'])
.then(x => console.log(x));