UNPKG

html-render-webpack-plugin

Version:

webpack plugin for rendering static HTML in a multi-config webpack build

10 lines (9 loc) 257 B
export default async function exampleRender(...params) { await new Promise((resolve) => setTimeout(resolve, 300)); return `<html> <body> Rendered with:&nbsp; <code>${JSON.stringify(params, null, 2).replace(/\n/g, "\n ")}</code> </body> </html>`; }