File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ class OptimizeCssAssetsWebpackPlugin extends LastCallWebpackPlugin {
23
23
this . options . cssProcessorOptions = ! options || options . cssProcessorOptions === undefined ?
24
24
{ } :
25
25
options . cssProcessorOptions ;
26
+ this . options . cssNanoOptions = ! options || options . cssNanoOptions === undefined ?
27
+ { } :
28
+ options . cssNanoOptions ;
26
29
}
27
30
28
31
buildPluginDescriptor ( ) {
@@ -59,7 +62,7 @@ class OptimizeCssAssetsWebpackPlugin extends LastCallWebpackPlugin {
59
62
}
60
63
}
61
64
return this . options
62
- . cssProcessor . process ( css . source , processOptions )
65
+ . cssProcessor . process ( css . source , processOptions , this . options . cssNanoOptions )
63
66
. then ( r => {
64
67
if ( processOptions . map && r . map && r . map . toString ) {
65
68
assets . setAsset ( assetName + '.map' , r . map . toString ( ) ) ;
You can’t perform that action at this time.
0 commit comments