0.0.3 • Published 6 years ago
sarsaparilla v0.0.3
Sarsaparilla
Parallelized node-sass.
D'ya have a good sarsaparilla?
Installation
npm i sarsaparilla
Usage
import {Sarsaparilla} from 'sarsaparilla';
const sarsaparilla = new Sarsaparilla({
parallel: true // Boolean or number. If true, then os.cpus().length - 1 worker processes will be used.
});
sarsaparilla
.runTasks([
// See options at https://github.com/sass/node-sass#usage
{
file: 'path/to/file.scss'
}
])
.then(function(results) {
// Do something with the results of the tasks.
results.forEach(function(result) {
if (result.error) {
console.error(result.error);
} else {
console.log(result.data);
}
});
});
License
Copyright (c) 2018 Hein Bekker. Licensed under the GNU Affero General Public License, version 3.