New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-html2

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-html2

Rollup plugin to zip up emitted files.

4.0.0
latest
Source
npm
Version published
Weekly downloads
165
10%
Maintainers
1
Weekly downloads
 
Created
Source

rollup-plugin-html2

Rollup plugin to inject bundled files to an HTML template.

This plugin was inspired by the html-webpack-plugin and rollup-plugin-bundle-html.

rollup-plugin-html2 doesn't list the output directory but gets entries from the resulting bundle. Also it emits resulting HTML file as an asset so it could be accessed by other plugins.

The plugin can be used alongside the rollup-plugin-favicons. In this case rollup-plugin-favicons should be placed before rollup-plugin-html2 in the plugin list.

Install

npm i -D rollup-plugin-html2

Usage

// rollup.config.js

import html2 from 'rollup-plugin-html2'


export default {
  input: 'index.js',
  output: {
    dir: 'dist',
    format: 'es',
  },
  plugins: [
    html2({
      template: 'index.html',
    }),
  ],
}

Options

Read the documentation.

License

MIT © Petr Tsymbarovich

Keywords

rollup

FAQs

Package last updated on 17 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts