import {ProjextRollupTemplatePlugin} from 'projext-plugin-rollup/src/plugins/template/index.js'ProjextRollupTemplatePlugin
This is a Rollup plugin that generates an HTML file and injects a given list of scripts and stylesheets.
Constructor Summary
| Public Constructor | ||
| public |
constructor(options: ProjextRollupTemplatePluginOptions, name: string) |
|
Method Summary
| Public Methods | ||
| public |
Gets the plugin options |
|
| public |
This is called by Rollup after writing the files on the file system. |
|
Public Constructors
public constructor(options: ProjextRollupTemplatePluginOptions, name: string) source
Params:
| Name | Type | Attribute | Description |
| options | ProjextRollupTemplatePluginOptions |
|
The options to customize the plugin behaviour. |
| name | string |
|
The name of the plugin's instance. |
Public Methods
public writeBundle() source
This is called by Rollup after writing the files on the file system. This is where the plugin parses the template and generates the HTML file.
