From 9733bbead887e58e8ec7480826afa478d4515d7f Mon Sep 17 00:00:00 2001 From: Jahred Hope Date: Wed, 10 Feb 2021 11:03:28 +1100 Subject: [PATCH] fix: Expose HtmlRenderPlugin as named export --- README.md | 2 +- src/index.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2040ae6..35a7e2a 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ HtmlRenderPlugin will then pass the [Webpack Stats](https://webpack.js.org/api/s **webpack.config.js** ```js -const HtmlRenderPlugin = require("html-render-webpack-plugin"); +const { HtmlRenderPlugin } = require("html-render-webpack-plugin"); const htmlRenderPlugin = new HtmlRenderPlugin(); module.exports = [ diff --git a/src/index.ts b/src/index.ts index 2cb46bb..a04fb78 100644 --- a/src/index.ts +++ b/src/index.ts @@ -331,3 +331,5 @@ export default class HtmlRenderPlugin { apply: (compiler: Compiler) => void; createDevRouter: () => Router; } + +export { HtmlRenderPlugin };