<html>
<head>
</head>
<body>
<div supersede="helloworld.txt"> </div>
...
Hello World!
var gulp = require('gulp');
var supersede = require('gulp-supersede');
gulp.task('default', function () {
gulp.src('index.html')
.pipe(supersede())
.pipe(gulp.dest('path'));
});
<html>
<head>
</head>
<body>
<!-- supersede: helloworld.txt -->
Hello World!
<!-- end supersede -->
...
MIT © 247even