rollup-plugin-generate-html
Generate html file for your Rollup bundle.
Installation
# yarn yarn add rollup-plugin-generate-html -D # npm npm install rollup-plugin-generate-html -D
Usage
// rollup.config.js input: 'src/index.js' output: file: 'dist/app.js' format: 'iife' plugins:
Configuration
There are some useful options:
filename
Type: string
Path for generated html file.
template
Type: string
| Default: included template string
Path for template to use.
selector
Type: string
| Default: body
Selector where to place scripts.
inline
Type: boolean
| Default: false
Inline scripts in template.
formatInline
Type: boolean
| Default: false
Beautify inline scripts.
License
MIT