File tree 2 files changed +4
-6
lines changed 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -344,13 +344,11 @@ class CssMinimizerPlugin {
344
344
) ;
345
345
}
346
346
347
- const result = await Promise . all ( scheduledTasks ) ;
347
+ await Promise . all ( scheduledTasks ) ;
348
348
349
349
if ( initializedWorker ) {
350
350
await initializedWorker . end ( ) ;
351
351
}
352
-
353
- return result ;
354
352
}
355
353
356
354
apply ( compiler ) {
@@ -365,8 +363,8 @@ class CssMinimizerPlugin {
365
363
) ;
366
364
367
365
const data = serialize ( {
368
- terser : cssNanoPackageJson . version ,
369
- terserOptions : this . options . terserOptions ,
366
+ cssNano : cssNanoPackageJson . version ,
367
+ cssNanoOptions : this . options . minimizerOptions ,
370
368
} ) ;
371
369
372
370
hooks . chunkHash . tap ( pluginName , ( chunk , hash ) => {
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ exports[`CssMinimizerPlugin should throw error from postcss: warning 1`] = `Arra
70
70
71
71
exports [` CssMinimizerPlugin should work and generate real content hash: assets 1` ] = `
72
72
Object {
73
- " entry.19e4764f9c1d9fe130e2.d83c1458800a0db8915f.0ffa7254aa159dde7994 .css" : " body{color:red}a{color:#00f}" ,
73
+ " entry.19e4764f9c1d9fe130e2.3dfffe1d97062bbef93c.df22749557b2a56485d0 .css" : " body{color:red}a{color:#00f}" ,
74
74
}
75
75
` ;
76
76
You can’t perform that action at this time.
0 commit comments