WebIndexPlugin

Description

Generates a HTML file once a producer's job is completed

Note

This plugin is under development

Usage

Setup

Import from FuseBox

const { WebIndexPlugin } = require("fuse-box");

Inject into a chain

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

Example

git clone https://github.com/fuse-box/fuse-box-examples.git
npm install
cd examples/vendor-splitting
node fuse.js