Ich versuche, eine Reihe von Aufgaben in Serie zu führen, das ist einer nach dem anderen in Gulp 4.0, aber wenn ich meine dritte Aufgabe hinzufügen, bricht mein Schluck Code.Schluck 4.0: Aufgaben in Serie
gulp.task('concat-js', (done) => {
gulp.src([
'app1.js',
'app2.js',
])
.pipe(concat("app.js"))
.pipe(gulp.dest('build'))
done();
});
gulp.task('concat-css', (done) => {
gulp.src([
'.styles1.css',
'.style2.css'
])
.pipe(concat("app.css"))
.pipe(gulp.dest('build'))
done();
});
gulp.task('minify-js', (done) => {
gulp.src('./build/app.js')
.pipe(uglify())
.pipe(gulp.dest('./build/'))
done();
})
//this works & creates /build with the app.js & app.css files
gulp.task('build-production-static-resource', gulp.series('concat-js', 'concat-css',, (done) => {
done();
}));
Wenn ich die Build-Ordner löschen alle über & Versuch starten eine andere Aufgabe (minfy-js) Zugabe, nicht meine dritte Aufgabe & die Build-Ordner erstellt nicht erhalten auch.
//File not found with singular glob: /Users/user/myapp/build/app.js
gulp.task('build-production-static-resource', gulp.series('concat-js', 'concat-css', 'minify-js', (done) => {
done();
}));