Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit 0aaa116

Browse files
committed
Remove console.log and dead code.
1 parent 346e149 commit 0aaa116

File tree

2 files changed

+0
-45
lines changed

2 files changed

+0
-45
lines changed

index.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,7 @@ var through2 = require('through2');
44
var defaults = require('lodash.defaults');
55
var uglifycss = require('uglifycss');
66

7-
8-
97
module.exports = function (options) {
10-
//options = defaults(options || {}, {
11-
// //maxLineLen: false,
12-
// //paths: []
13-
//});
14-
15-
console.log(JSON.stringify(options, null, " "));
16-
178
return through2.obj(function (file, enc, cb) {
189
if (file.isNull()) {
1910
return cb(null, file);
@@ -24,11 +15,6 @@ module.exports = function (options) {
2415
}
2516

2617
var str = file.contents.toString('utf8');
27-
28-
// Clones the options object.
29-
//var opts = defaults({}, options);
30-
31-
3218
file.contents = new Buffer(uglifycss.processString(str, options));
3319

3420
return cb(null, file);

test/main.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -81,36 +81,5 @@ describe('gulp-uglifycss', function () {
8181
stream.write(file);
8282
});
8383
});
84-
85-
it('should provide target filename to sourcemap', function (done) {
86-
var files = [
87-
createVinyl('buttons.css'),
88-
createVinyl('layout.css'),
89-
createVinyl('simple.css')
90-
] .map(function (file) {
91-
file.sourceMap = {
92-
file: '',
93-
version : 3,
94-
sourceRoot : '',
95-
sources: [],
96-
names: [],
97-
mappings: ''
98-
};
99-
100-
return file;
101-
});
102-
103-
var stream = uglifycss();
104-
var count = files.length;
105-
stream.on('data', function (cssFile) {
106-
should.exist(cssFile.sourceMap.file);
107-
});
108-
stream.on('end', done);
109-
110-
files.forEach(function (file) {
111-
stream.write(file);
112-
});
113-
stream.end();
114-
});
11584
});
11685
});

0 commit comments

Comments
 (0)