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 };