I\'m try to use gulp-inject to inject some files into a PHP file. This is not working. I tried using HTML as well but that isn\'t working. The output in my console says \"gulp-i
The files were injected...but just in memory ! You actually have to pipe the result to a file :
gulp.task('build',function() {
return gulp.src("src/test.html")
.pipe(inject(gulp.src("src/vendor/js/*.js")))
.pipe(gulp.dest('./dist')); // or .src/ or whatever
});
There are other examples in the readme