code: function ensureRelative(outputDir, p) {
      if (path.isAbsolute(p)) {
          return path.relative(outputDir, p);
      } else {
          return p;
      }
  }
docs: ensure the filename passed to html-webpack-plugin is a relative path because it cannot correctly handle absolute paths