generateHtml(templatePath, outputFilename, contect, doCompress
Example:
// rollup.config.js plugin part
generateHtml('path/to/your/index.html', 'outputname.html', {
htmlTitle: 'My HTML',
favicon: 'favicon.ico'
}, production),
// ...
In the HTML template use ES6 template iteral style. The htmlTitle
from the example is accessed like: ${this.htmlTitle}
.
File inlining can be realized with: //inline/MIMETYPE;PATH_TO_FILE
, ex.: //inline/image/svg+xml;src/assets/logotext.svg