E
E
Eugerick2020-07-04 16:32:40
Frontend
Eugerick, 2020-07-04 16:32:40

Why doesn't the dest function in gulpfile.js work?

there is a function in gulpfile.js that compresses votki

function images(){
    return(src("big_image/**"))
    .pipe(imagemin())
    .pipe(dest("app/image"))
    .pipe(browserSync.stream())
}


when I run it, an error is displayed in the terminal:
TypeError: dest.on is not a function

on all other functions like translating preprocessors in css and so on - they work without problems.
I already played with the specified unloading path, nothing works, the error is the same.

what needs to be fixed?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question