Skip to content

Commit 7917759

Browse files
ycycwxNMFR
authored andcommitted
avoid modify cssProcessorOptions.map option (NMFR#19)
1 parent 56931ef commit 7917759

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ OptimizeCssAssetsPlugin.prototype.processCss = function(assetName, asset, assets
5252
(map.mappings && map.mappings.length > 0)
5353
)
5454
) {
55-
processOptions.map.prev = mapJson;
55+
var mapOptions = Object.assign({ prev: mapJson }, processOptions.map);
56+
processOptions.map = mapOptions;
5657
}
5758
}
5859
} catch (err) {

0 commit comments

Comments
 (0)