@@ -8,29 +8,29 @@ export interface Options {
8
8
*
9
9
* default: false
10
10
*/
11
- dry : boolean ;
11
+ dry ? : boolean ;
12
12
13
13
/**
14
14
* Write Logs to Console
15
15
* (Always enabled when dry is true)
16
16
*
17
17
* default: false
18
18
*/
19
- verbose : boolean ;
19
+ verbose ? : boolean ;
20
20
21
21
/**
22
22
* Automatically remove all unused webpack assets on rebuild
23
23
*
24
24
* default: true
25
25
*/
26
- cleanStaleWebpackAssets : boolean ;
26
+ cleanStaleWebpackAssets ? : boolean ;
27
27
28
28
/**
29
29
* Do not allow removal of current webpack assets
30
30
*
31
31
* default: true
32
32
*/
33
- protectWebpackAssets : boolean ;
33
+ protectWebpackAssets ? : boolean ;
34
34
35
35
/**
36
36
* Removes files once prior to Webpack compilation
@@ -40,7 +40,7 @@ export interface Options {
40
40
*
41
41
* default: ['**\/*']
42
42
*/
43
- cleanOnceBeforeBuildPatterns : string [ ] ;
43
+ cleanOnceBeforeBuildPatterns ? : string [ ] ;
44
44
45
45
/**
46
46
* Removes files after every build (including watch mode) that match this pattern.
@@ -50,7 +50,7 @@ export interface Options {
50
50
*
51
51
* default: disabled
52
52
*/
53
- cleanAfterEveryBuildPatterns : string [ ] ;
53
+ cleanAfterEveryBuildPatterns ? : string [ ] ;
54
54
55
55
/**
56
56
* Allow clean patterns outside of process.cwd()
@@ -59,7 +59,7 @@ export interface Options {
59
59
*
60
60
* default: false
61
61
*/
62
- dangerouslyAllowCleanPatternsOutsideProject : boolean ;
62
+ dangerouslyAllowCleanPatternsOutsideProject ? : boolean ;
63
63
}
64
64
65
65
class CleanWebpackPlugin {
@@ -74,7 +74,7 @@ class CleanWebpackPlugin {
74
74
private initialClean : boolean ;
75
75
private outputPath : string ;
76
76
77
- constructor ( options : Partial < Options > = { } ) {
77
+ constructor ( options : Options = { } ) {
78
78
if ( typeof options !== 'object' || Array . isArray ( options ) === true ) {
79
79
throw new Error ( `clean-webpack-plugin only accepts an options object. See:
80
80
https://github.com/johnagan/clean-webpack-plugin#options-and-defaults-optional` ) ;
0 commit comments