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 {
2323 this . options . cssProcessorOptions = ! options || options . cssProcessorOptions === undefined ?
2424 { } :
2525 options . cssProcessorOptions ;
26+ this . options . cssNanoOptions = ! options || options . cssNanoOptions === undefined ?
27+ { } :
28+ options . cssNanoOptions ;
2629 }
2730
2831 buildPluginDescriptor ( ) {
@@ -59,7 +62,7 @@ class OptimizeCssAssetsWebpackPlugin extends LastCallWebpackPlugin {
5962 }
6063 }
6164 return this . options
62- . cssProcessor . process ( css . source , processOptions )
65+ . cssProcessor . process ( css . source , processOptions , this . options . cssNanoOptions )
6366 . then ( r => {
6467 if ( processOptions . map && r . map && r . map . toString ) {
6568 assets . setAsset ( assetName + '.map' , r . map . toString ( ) ) ;
You can’t perform that action at this time.
0 commit comments