code: function writeOutputHTML(dir, html) {
    const outputPath = pathJoin(dir, 'index.html');
    mkdirp.sync(path.dirname(outputPath));
    writeFileSync(outputPath, serialize(html));
  }
docs: Writes given HTML AST to output index.html