UNPKG
webpack-papa-script
Version:
latest (3.3.5)
3.3.5
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.2
A frontend projects solution
github.com/nonjene/webpack-papa-script
nonjene/webpack-papa-script
webpack-papa-script
/
bin
/
util
/
logger.js
17 lines
(15 loc)
•
306 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const
{ isMochaTest } =
require
(
'../config'
);
const
chalk =
require
(
'chalk'
);
/* istanbul ignore next */
module
.
exports
= {
log
(
){
if
(
isMochaTest
())
return
;
console
.
log
.
apply
(
console
,
arguments
); },
cyan
(
t
){
this
.
log
(chalk.
cyan
(t)); },
red
(
t
){
this
.
log
(chalk.
red
(t)); } };