8000 fix: use EntryPlugin instead of the deprecated SingleEntryPlugin · jantimon/html-webpack-plugin@ed64a6b · GitHub
[go: up one dir, main page]

Skip to content

Commit ed64a6b

Browse files
committed
fix: use EntryPlugin instead of the deprecated SingleEntryPlugin
1 parent 6b3d087 commit ed64a6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/child-compiler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class HtmlWebpackChildCompiler {
7878
const NodeTemplatePlugin = webpack.node.NodeTemplatePlugin;
7979
const NodeTargetPlugin = webpack.node.NodeTargetPlugin;
8080
const LoaderTargetPlugin = webpack.LoaderTargetPlugin;
81-
const SingleEntryPlugin = webpack.SingleEntryPlugin;
81+
const EntryPlugin = webpack.EntryPlugin;
8282

8383
// To prevent multiple compilations for the same template
8484
// the compilation is cached in a promise.
@@ -116,7 +116,7 @@ class HtmlWebpackChildCompiler {
116116

117117
// Add all templates
118118
this.templates.forEach((template, index) => {
119-
new SingleEntryPlugin(childCompiler.context, template, `HtmlWebpackPlugin_${index}-${this.id}`).apply(childCompiler);
119+
new EntryPlugin(childCompiler.context, template, `HtmlWebpackPlugin_${index}-${this.id}`).apply(childCompiler);
120120
});
121121

122122
this.compilationStartedTimestamp = new Date().getTime();

0 commit comments

Comments
 (0)
0