Skip to content

Commit 5dc705c

Browse files
committed
#43 ; dep updated (clean-css 4.1.3)
1 parent eeee392 commit 5dc705c

File tree

3 files changed

+157
-159
lines changed

3 files changed

+157
-159
lines changed

index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,9 @@ module.exports = function gulpCleanCSS(options, callback) {
2727
options.sourceMap = JSON.parse(JSON.stringify(file.sourceMap));
2828

2929
let contents = file.contents ? file.contents.toString() : '';
30-
let style = {
31-
[file.path]: {
32-
styles: contents
33-
}
34-
};
30+
let pass = options.rebaseTo ? {[file.path]: {styles: contents}} : contents;
3531

36-
new CleanCSS(options).minify(style, function (errors, css) {
32+
new CleanCSS(options).minify(pass, function (errors, css) {
3733

3834
if (errors)
3935
return cb(errors.join(' '));

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gulp-clean-css",
33
"description": "Minify css with clean-css.",
44
"homepage": "https://github.com/scniro/gulp-clean-css#readme",
5-
"version": "3.3.1",
5+
"version": "3.4.0",
66
"author": "scniro",
77
"license": "MIT",
88
"bugs": {
@@ -29,7 +29,7 @@
2929
"gulpfriendly"
3030
],
3131
"dependencies": {
32-
"clean-css": "4.1.2",
32+
"clean-css": "4.1.3",
3333
"gulp-util": "3.0.8",
3434
"through2": "2.0.3",
3535
"vinyl-sourcemaps-apply": "0.2.1"
@@ -39,7 +39,7 @@
3939
"chai-string": "1.3.0",
4040
"coveralls": "2.13.1",
4141
"del": "2.2.2",
42-
"express": "4.15.2",
42+
"express": "4.15.3",
4343
"gulp": "3.9.1",
4444
"gulp-concat": "2.6.1",
4545
"gulp-istanbul": "1.1.1",

0 commit comments

Comments
 (0)