Gathering detailed insights and metrics for rollup-plugin-generate-html
Gathering detailed insights and metrics for rollup-plugin-generate-html
Gathering detailed insights and metrics for rollup-plugin-generate-html
Gathering detailed insights and metrics for rollup-plugin-generate-html
rollup-plugin-generate-html-template
Rollup plugin for automatically injecting a script tag with the final bundle into an html file.
@aminnairi/rollup-plugin-generate-html
Automatic HTML Generator
@gen/rollup-plugin-generate-html
Simple html generation plugin for rollup
rollup-plugin-generate-html-from-template
npm install rollup-plugin-generate-html
Typescript
Module System
Min. Node Version
Node Version
NPM Version
62
Supply Chain
93.2
Quality
73.8
Maintenance
100
Vulnerability
99.3
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
22 Commits
1 Forks
1 Watchers
1 Branches
1 Contributors
Updated on Aug 24, 2019
Latest Version
0.2.0
Package Id
rollup-plugin-generate-html@0.2.0
Unpacked Size
6.80 kB
Size
2.01 kB
File Count
4
NPM Version
6.9.0
Node Version
12.6.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Generate html file for your Rollup bundle.
1# yarn 2yarn add rollup-plugin-generate-html -D 3 4# npm 5npm install rollup-plugin-generate-html -D
1// rollup.config.js 2import generateHtml from 'rollup-plugin-generate-html' 3 4export default { 5 input: 'src/index.js', 6 output: { 7 file: 'dist/app.js', 8 format: 'iife' 9 }, 10 plugins: [ 11 generateHtml({ 12 filename: 'dist/public/index.html' 13 }) 14 ] 15}
There are some useful options:
Type: string
Path for generated html file.
1generateHtml({
2 filename: 'dist/public/index.html'
3})
Type: string
| Default: included template string
Path for template to use.
1generateHtml({
2 filename: 'dist/public/index.html',
3 template: 'src/assets/template.html'
4})
Type: string
| Default: body
Selector where to place scripts.
1generateHtml({
2 filename: 'dist/public/index.html',
3 selector: 'head'
4})
Type: boolean
| Default: false
Inline scripts in template.
1generateHtml({
2 filename: 'dist/public/index.html',
3 inline: true
4})
Type: boolean
| Default: false
Beautify inline scripts.
1generateHtml({
2 filename: 'dist/public/index.html',
3 inline: true,
4 formatInline: true
5})
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/22 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
63 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More