Skip to content

Commit eeee392

Browse files
author
Sal Niro
committed
pass rebase option
1 parent ba2ee13 commit eeee392

File tree

2 files changed

+153
-155
lines changed

2 files changed

+153
-155
lines changed

index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const through = require('through2');
88

99
module.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

0 commit comments

Comments
 (0)