Skip to content

Commit

Permalink
#43 ; dep updated (clean-css 4.1.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
scniro committed May 22, 2017
1 parent eeee392 commit 5dc705c
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 159 deletions.
8 changes: 2 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,9 @@ module.exports = function gulpCleanCSS(options, callback) {
options.sourceMap = JSON.parse(JSON.stringify(file.sourceMap));

let contents = file.contents ? file.contents.toString() : '';
let style = {
[file.path]: {
styles: contents
}
};
let pass = options.rebaseTo ? {[file.path]: {styles: contents}} : contents;

new CleanCSS(options).minify(style, function (errors, css) {
new CleanCSS(options).minify(pass, function (errors, css) {

if (errors)
return cb(errors.join(' '));
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "gulp-clean-css",
"description": "Minify css with clean-css.",
"homepage": "https://github.com/scniro/gulp-clean-css#readme",
"version": "3.3.1",
"version": "3.4.0",
"author": "scniro",
"license": "MIT",
"bugs": {
Expand All @@ -29,7 +29,7 @@
"gulpfriendly"
],
"dependencies": {
"clean-css": "4.1.2",
"clean-css": "4.1.3",
"gulp-util": "3.0.8",
"through2": "2.0.3",
"vinyl-sourcemaps-apply": "0.2.1"
Expand All @@ -39,7 +39,7 @@
"chai-string": "1.3.0",
"coveralls": "2.13.1",
"del": "2.2.2",
"express": "4.15.2",
"express": "4.15.3",
"gulp": "3.9.1",
"gulp-concat": "2.6.1",
"gulp-istanbul": "1.1.1",
Expand Down

0 comments on commit 5dc705c

Please sign in to comment.