UNPKG

fuse-box

Version:

Fuse-Box a bundler that does it right

48 lines (30 loc) 864 B
# WebIndexPlugin ## Description Generates a HTML file once a producer's job is completed note: This plugin is under development ## Usage ### Setup Import from FuseBox ```js const { WebIndexPlugin } = require("fuse-box"); ``` Inject into a chain ```js fuse.plugin( WebIndexPlugin() ) ``` ## Options | Name | Meaning | | ------------- | ------------- | | ` title ` | Sets the title | | ` bundles ` | Provide a list of bundle names (if not set all registered bundles are through) | | ` path ` | Joins a string with bundles. For example `/assets` | | ` template ` | Provide a path to your own template | ## Custom template A custom template has the following macro available: | Symbol | Meaning | | ------------- | ------------- | | ` $title ` | Html Title | | ` $bundles ` | A list of script tags | github_example: vendor-splitting