0

I get this error:

 this.processing = new Promise(function (resolve, reject) {
     ReferenceError: Promise is not defined

When I try to:

gulp.task('site-css', function() {
    return gulp.src(cssconfig.src)
        .pipe(cssnano())
        .pipe(concat('sitecss.min.css'))
        .pipe(gulp.dest('Styles/')); 
}); 

It's specifically this line that doesn't work for me.

   .pipe(cssnano())

How to solve this, or more how to minify and concat my css files?

0

1 Answer 1

2

Old versions of node don't have Promise defined (it's a new feature of ES2015).

Update your node installation.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.