Gulpjs 4: The following tasks did not complete: style Did you forget to signal async completion?
I'm trying to loop over all the Outputs, but i get this Error The following tasks did not complete: style Did you forget to signal async completion?
I even didn't really understand the Error.
const gulp = require('gulp');
const sass = require('gulp-sass');
const outputsSass = [
'',
'admin/',
'admin/pages/',
'website/',
'website/pages/',
];
function style() {
outputsSass.forEach(output => gulp
.src(`sass/${output}*.scss'`)
.pipe(sass())
.on('error', sass.logError)
.pipe(gulp.dest(`public/css/${output}`)));
}
exports.style = style;