Skip to content

gulp-log2console is a gulp plugin which add console logging into your JS files.

Notifications You must be signed in to change notification settings

mrtnjln/gulp-log2console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-log2console

gulp-log2console is a gulp plugin which add console logging into your JS files.

NPM

build status devDependency Status

Install

$ npm install --save-dev gulp-log2console

Usage

var gulp = require('gulp');
var log2console = require('gulp-log2console');

gulp.task('log2console', function () {
    gulp.src('dist/**/*.js')
        .pipe(log2console('My custom message', { logType: 'warn' }))
        .pipe(gulp.dest('dist'));
});

Options

  • logType (string) : type of logging - (log (default), info, warn, error)
  • useStrict (bool) : add 'use strict' into the IIFE function (default false)
  • trimCode (bool) : inline code (default true)
  • prependSemicolon (bool) : add a semicolon before the IIFE (default false)

License

MIT License

About

gulp-log2console is a gulp plugin which add console logging into your JS files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published