Skip to content

Commit dd610d8

Browse files
author
Caolan McMahon
committed
added some logging to exportMinfied function
1 parent 3e7c2a5 commit dd610d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/builder.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,14 @@ exports.minify = function (source) {
4747
exports.exportMinified = function (wd, treeish, path, output_dir, callback) {
4848
git.eachBlob(wd, treeish, path, function (blob, cb) {
4949

50-
var min = exports.minify(blob.data);
5150
var filename = _path.join(output_dir, blob.path.replace(/^src\//, ''));
5251
var dirname = _path.dirname(filename);
52+
var min = exports.minify(blob.data);
53+
console.log('minifying ' + treeish + ':' + blob.path);
5354

5455
util.ensureDir(dirname, function (err) {
5556
if (err) return cb(err);
57+
console.log('writing ' + treeish + ':' + blob.path);
5658
fs.writeFile(filename, min, cb);
5759
});
5860

0 commit comments

Comments
 (0)