Skip to content

When using html-webpack-plugin, generate a JSON file that corresponds to the key value pair of the template file and the target file

Notifications You must be signed in to change notification settings

liyongleihf2006/html-manifest-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

html-manifest-plugin

When using html-webpack-plugin, generate a JSON file that corresponds to the key value pair of the template file and the target file

Install

npm install --save-dev html-manifest-plugin

Usage

webpack.config.js

const HtmlManifestPlugin = require("html-manifest-plugin");

module.exports = {
  ...
  ,plugins: [
    ...
        new HtmlManifestPlugin()
    ...
  ]
}

Emits html-manifest.json as file in the output directory

Options

name type default description
path string undefined File path
filename string html-manifest.json File name
templates string or array undefined The generated JSON will inject the template files (the template file is the template in the html-webpack-plugin)
variable string html_manifest_json JSON variable name injected into the template files

About

When using html-webpack-plugin, generate a JSON file that corresponds to the key value pair of the template file and the target file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published