minify-all-cli
Version:
Minify All JS, CSS and HTML files in a folder by using UglifyJS, CSSNano and HTMLMinifier with an option to gzip all the files as well.
26 lines (20 loc) • 540 B
JavaScript
const winston = require("winston");
const createLogger = function(logLevel) {
const logger = winston.createLogger({
level: logLevel,
format: winston.format.combine(
winston.format.colorize({ all: true }),
//winston.format.simple()
winston.format.cli()
)
});
logger.add(new winston.transports.Console({
format: winston.format.simple(),
}));
return logger;
};
module.exports = {
"winston": createLogger
};
;