Answer the question
In order to leave comments, you need to log in
Catching the gulp file?
How to properly catch files and apply modules to them?
gulp.task("production", function(){
return gulp.src("app/**")
.on("data", function(file){
if(file.path.search(".html") != -1){
file
.pipe(gulpRemoveHtml())
.pipe(insertLines({
'before': /<\/body>$/,
'lineBefore': '<script type="text/javascript" src="cordova.js"></script>'
}));
}
})
.pipe( gulp.dest("dist/production") );
});
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