Skip to content

Commit 9d35c89

Browse files
author
Vladislav Tarasov
committed
Handle template for webpack4
1 parent d31013d commit 9d35c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ class MiniCssExtractPlugin {
619619
}
620620
});
621621

622-
const { Template } = webpack;
622+
const Template = isWebpack4 ? webpack.webpack.Template : webpack.Template;
623623
const { mainTemplate } = compilation;
624624

625625
if (isWebpack4) {

0 commit comments

Comments
 (0)