Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

html-webpack-event-plugin

npm versionlicense

the events of html-webpack-plugin

Async:

  • html-webpack-plugin-before-html-generation
  • html-webpack-plugin-before-html-processing
  • html-webpack-plugin-alter-asset-tags
  • html-webpack-plugin-after-html-processing
  • html-webpack-plugin-after-emit

Sync:

  • html-webpack-plugin-alter-chunks

Installation

npm install --save-dev html-webpack-event-plugin

Usage

Even if you generate multiple files make sure that you add the HtmlWebpackEventPlugin only once.

varHtmlWebpackPlugin=require('html-webpack-plugin');varHtmlWebpackEventPlugin=require('html-webpack-event-plugin');
plugins: [newHtmlWebpackEventPlugin(),newHtmlWebpackPlugin(),newHtmlWebpackPlugin({alterChunks: function(htmlPluginData,chunks){returnchunks;},beforeHtmlGeneration: function(htmlPluginData){returnhtmlPluginData;},beforeHtmlProcessing: function(htmlPluginData){returnhtmlPluginData;},alterAssetTags: function(htmlPluginData){returnhtmlPluginData;},afterHtmlProcessing: function(htmlPluginData){returnhtmlPluginData;},afterEmit: function(htmlPluginData){returnhtmlPluginData;}})]

License

This project is licensed under MIT.

About

the event of html-webpack-plugin

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages