marksmccann / node-sass-extra

A drop-in replacement for node-sass' Node API that adds support for globs, promises and more.
MIT License
2 stars 1 forks source link

Add promise support #9

Closed marksmccann closed 5 years ago

marksmccann commented 5 years ago

Let's add promise support ...

import sass from 'node-sass-extra';
...
sass('src/**/*.scss').then((css) => {
    // do something with `css`
})
...
let css = await sass('src/**/*.scss', {...});
// do something with `css`