diff --git a/src/index.ts b/src/index.ts index 233ab7d..6211d43 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,7 +5,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin') * Generates an index.html from a template * See: https://github.com/ampedandwired/html-webpack-plugin */ -export function generateIndexHtml(minify = true, overrideOptions = {}) { +export = function generateIndexHtml(minify = true, overrideOptions = {}) { return function generateIndexHtml(this: WebpackConfig): WebpackConfig { return { plugins: [