MCPcopy Create free account
hub / github.com/jantimon/html-webpack-plugin / HtmlWebpackPlugin

Function HtmlWebpackPlugin

index.js:12–29  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

10Promise.promisifyAll(fs);
11
12function HtmlWebpackPlugin (options) {
13 // Default options
14 this.options = _.extend({
15 template: path.join(__dirname, 'default_index.ejs'),
16 filename: 'index.html',
17 hash: false,
18 inject: true,
19 compile: true,
20 favicon: false,
21 minify: false,
22 cache: true,
23 showErrors: true,
24 chunks: 'all',
25 excludeChunks: [],
26 title: 'Webpack App',
27 xhtml: false
28 }, options);
29}
30
31HtmlWebpackPlugin.prototype.apply = function (compiler) {
32 var self = this;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected