Answer the question
In order to leave comments, you need to log in
Why doesn't the gulp-file-include plugin work?
Installed the gulp-file-include plugin.
gulpfile.js config:
gulp.task('fileinclude', function() {
gulp.src(['app/index.html'])
.pipe(fileinclude({
prefix: '@@',
basepath: '@file',
}))
.pipe(gulp.dest('./'));
});
Answer the question
In order to leave comments, you need to log in
There are thousands of questions with this error all over the Internet and moreover with a solution
Read the documentation https://gulpjs.com/docs/en/getting-started/async-c... before using the tool
gulp.task('fileinclude', function() {
return gulp.src(['app/index.html'])
.pipe(fileinclude({
prefix: '@@',
basepath: '@file',
}))
.pipe(gulp.dest('./'));
});
On stackover, there seems to be an analysis of this problem - here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question