Answer the question
In order to leave comments, you need to log in
Question about building a gulp project?
Good day!
When executing the "build" task, it gives the following error:
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 questionAsk a Question
731 491 924 answers to any question