Gulp is creating a directory instead of a file

I want gulp to spit out a style.min.css:

// Minify
gulp.task('minify-css', function () {

it is minifying the .css but instead is creating a directory with a style.css in it:


Any help? Thanks.

1 answer

  • answered 2018-03-13 20:51 dudeman

    gulp.dest writes to directories. You should add a rename step before piping to gulp.dest.


    You should be able to use the gulp-rename module for this.