Answer the question
In order to leave comments, you need to log in
How to split pages(html, scss) into folders in GULP?
How to build GULP so that each page (html, scss) is in a separate folder
// ======================
// HTML
// ======================
gulp.task('html', function() {
return gulp.src(['app/page/**/*.html', '!app/page/__block/*.html'])
.pipe(filesize())
.pipe(plumber())
.pipe(fileinclude({
prefix: '@@',
basepath: '@file'
}))
.pipe(notify("Found file: <%= file.relative %>!"))
.pipe(gulp.dest('app/html/'))
.pipe(reload({ stream:true }));
});
// ======================
// ======================
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