Skip to content

Commit d722b9b

Browse files
committed
feat: use webpack 5 typings
1 parent 1b59e09 commit d722b9b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"dependencies": {
5353
"@types/html-minifier-terser": "^5.0.0",
5454
"@types/tapable": "^1.0.5",
55-
"@types/webpack": "^4.41.22",
5655
"html-minifier-terser": "^5.0.1",
5756
"loader-utils": "2.0.0",
5857
"lodash": "^4.17.20",

typings.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AsyncSeriesWaterfallHook } from "tapable";
2-
import { Compiler, compilation } from 'webpack';
2+
import { Compiler, Compilation } from 'webpack';
33
import { Options as HtmlMinifierOptions } from "html-minifier-terser";
44

55
export = HtmlWebpackPlugin;
@@ -9,7 +9,7 @@ declare class HtmlWebpackPlugin {
99

1010
apply(compiler: Compiler): void;
1111

12-
static getHooks(compilation: compilation.Compilation): HtmlWebpackPlugin.Hooks;
12+
static getHooks(compilation: Compilation): HtmlWebpackPlugin.Hooks;
1313

1414
/**
1515
* Static helper to create a tag object to be get injected into the dom

0 commit comments

Comments
 (0)