有没有一种方法可以生成一个新的HTML文件,最好是使用一个gulp插件?

有没有一种方法可以生成一个新的HTML文件,最好是使用一个gulp插件?,gulp,Gulp,我已经精简了内容,希望能让我的问题更容易阅读 <html> <head></head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f2f2f2" align="center"> <!--=================== Content goes in here =====

我已经精简了内容,希望能让我的问题更容易阅读

<html>
 <head></head>
  <body>    
  <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f2f2f2" align="center">    
  <!--===================
  Content goes in here
  ====================-->    
  </table>
  <script src="./dist/logic.js"></script>
</body>
</html>

试试这个谢谢你的建议。一定要试一试。如果需要更多,请告诉我info@Kasiriveni我安装了gulphtmlbuild,并按照指南进行了操作。我在终端中得到错误:
htmlbuild未定义
。格尔普菲尔在岗位上。我做得不对吗。我可以给你更多你需要的信息。你能在中分享gulpfile.js吗
    var gulp = require('gulp');

gulp.task('build', function () {
  gulp.src(['./index.html'])
    .pipe(htmlbuild({
      // build js with preprocessor
      js: htmlbuild.preprocess.js(function (block) {

        // read paths from the [block] stream and build them
        // ...

        // then write the build result path to it
        block.write('buildresult.js');
        block.end();

      })
    }))
    .pipe(gulp.dest('./build'));
});