My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Gulpjs 4: The following tasks did not complete: style Did you forget to signal async completion?

refat alsakka's photo
refat alsakka
·Aug 7, 2019

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;