From 5815e2772dfdcceca6db7ec899d5a11564d3ec9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bazyli=20Brzo=CC=81ska?= Date: Fri, 24 Jun 2016 02:14:16 +0200 Subject: [PATCH] fix(index): do not fail when no parameter passed in --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 4439fc1..5a2dd43 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ import * as path from 'path' * * See: https://github.com/webpack/html-loader */ -export = function html({exclude = null}) { +export = function html({exclude = null} = {}) { return function html(this: WebpackConfig): WebpackConfig { return { module: {