@@ -27,7 +27,7 @@ export class LightningCssMinifyPlugin {
27
27
const { implementation, ...otherOpts } = opts
28
28
if ( implementation && typeof implementation . transform !== 'function' ) {
29
29
throw new TypeError (
30
- `[LightningCssMinifyPlugin]: implementation.transform must be an 'lightningcss' transform function. Received ${ typeof implementation . transform } `
30
+ `[LightningCssMinifyPlugin]: implementation.transform must be an 'lightningcss' transform function. Received ${ typeof implementation . transform } ` ,
31
31
)
32
32
}
33
33
@@ -44,7 +44,7 @@ export class LightningCssMinifyPlugin {
44
44
45
45
compiler . hooks . compilation . tap ( PLUGIN_NAME , ( compilation ) => {
46
46
compilation . hooks . chunkHash . tap ( PLUGIN_NAME , ( _ , hash ) =>
47
- hash . update ( meta )
47
+ hash . update ( meta ) ,
48
48
)
49
49
50
50
if ( isWebpack5 ( compilation ) ) {
@@ -54,7 +54,7 @@ export class LightningCssMinifyPlugin {
54
54
stage : compilation . constructor . PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE ,
55
55
additionalAssets : true ,
56
56
} ,
57
- async ( ) => await this . transformAssets ( compilation )
57
+ async ( ) => await this . transformAssets ( compilation ) ,
58
58
)
59
59
60
60
compilation . hooks . statsPrinter . tap ( PLUGIN_NAME , ( statsPrinter ) => {
@@ -69,7 +69,7 @@ export class LightningCssMinifyPlugin {
69
69
} else {
70
70
compilation . hooks . optimizeChunkAssets . tapPromise (
71
71
PLUGIN_NAME ,
72
- async ( ) => await this . transformAssets ( compilation )
72
+ async ( ) => await this . transformAssets ( compilation ) ,
73
73
)
74
74
}
75
75
} )
@@ -99,7 +99,7 @@ export class LightningCssMinifyPlugin {
99
99
! asset . info . minimized &&
100
100
// Filter out by file type
101
101
( testRegExp || CSS_FILE_REG ) . test ( asset . name ) &&
102
- matchObject ( { include, exclude } , asset . name )
102
+ matchObject ( { include, exclude } , asset . name ) ,
103
103
)
104
104
105
105
await Promise . all (
@@ -132,15 +132,15 @@ export class LightningCssMinifyPlugin {
132
132
JSON . parse ( result . map ! . toString ( ) ) ,
133
133
sourceAsString ,
134
134
map as any ,
135
- true
135
+ true ,
136
136
)
137
137
: new RawSource ( codeString ) ,
138
138
{
139
139
...asset . info ,
140
140
minimized : true ,
141
- }
141
+ } ,
142
142
)
143
- } )
143
+ } ) ,
144
144
)
145
145
}
146
146
}
0 commit comments