File tree Expand file tree Collapse file tree 2 files changed +153
-155
lines changed
Expand file tree Collapse file tree 2 files changed +153
-155
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const through = require('through2');
88
99module . exports = function gulpCleanCSS ( options , callback ) {
1010
11- options = options || { } ;
11+ options = Object . assign ( options || { } ) ;
1212
1313 if ( arguments . length === 1 && Object . prototype . toString . call ( arguments [ 0 ] ) === '[object Function]' )
1414 callback = arguments [ 0 ] ;
@@ -26,12 +26,10 @@ module.exports = function gulpCleanCSS(options, callback) {
2626 if ( file . sourceMap )
2727 options . sourceMap = JSON . parse ( JSON . stringify ( file . sourceMap ) ) ;
2828
29- if ( ! options . rebaseTo )
30- options . rebase = false ;
31-
29+ let contents = file . contents ? file . contents . toString ( ) : '' ;
3230 let style = {
3331 [ file . path ] : {
34- styles : file . contents ? file . contents . toString ( ) : ''
32+ styles : contents
3533 }
3634 } ;
3735
You can’t perform that action at this time.
0 commit comments