V
V
Valery Zhmyshenko2020-02-08 13:20:37
gulp.js
Valery Zhmyshenko, 2020-02-08 13:20:37

Question about building a gulp project?

Good day!
When executing the "build" task, it gives the following error:
5e3e895065238180591095.png
The dist folder is deleted (task clean works), but a new dist is not created with the moved files.

CLI version: 2.2.0
Local version: 4.0.2

task('clean', series(function(done){
  return del.sync('dist');
  done();
}));

task('build', series('clean', function(done){
  
  const buildCss = src('src/css/**/*.css')
  .pipe(dest('dist/css'));
  
  const buildFonts = src('src/fonts/**/*')
  .pipe(dest('dist/fonts/'));

  const bulidJs = src('src/js/**/*')
  .pipe(dest('dist/js'));
  
  const bulidImg = src('src/img/**/*')
  .pipe(dest('dist/img'));

  const bulidHtml = src('src/*.html')
  .pipe(dest('dist/'));

  return {
    buildCss,
    buildFonts,
    bulidJs,
    bulidImg,
    bulidHtml
  }
  done();
}));

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