Skip to content

Commit

Permalink
Using "fancy-log" for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Feb 1, 2019
1 parent 60faa88 commit 41bb572
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 deletions.
3 changes: 2 additions & 1 deletion src/minifier.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {which} from '@cedx/which';
import * as log from 'fancy-log';
import {Transform, TransformCallback} from 'stream';
import * as File from 'vinyl';

Expand Down Expand Up @@ -61,7 +62,7 @@ export class Minifier extends Transform {
}

// tslint:disable-next-line: no-console
if (!this.silent) console.log(`Minifying: ${file.path}`);
if (!this.silent) log(`Minifying: ${file.path}`);
file.contents = Buffer.from(await this._transformer.transform(file.path), encoding);
if (callback) callback(undefined, file);
}
Expand Down
29 changes: 0 additions & 29 deletions test/factory_test.ts

This file was deleted.

0 comments on commit 41bb572

Please sign in to comment.