1.0.0 • Published 7 years ago

gulp-butternut v1.0.0

Weekly downloads
27
License
MIT
Repository
github
Last release
7 years ago

gulp-butternut

Minify JavaScript with butternut.

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev gulp-butternut

Usage

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

gulp.task('compress', function (cb) {
    return gulp.src('lib/*.js')
        .pipe(butternut(options))
        .pipe(gulp.dest('dist'));
});

Options

The options argument, if supplied, is an object that can have the following properties:

OptionDefault valueDescription
checkfalseParse output. See below
allowDangerousEvalfalseWhether to allow direct eval calls
sourceMaptrueWhether to create a sourcemap. Set to inline to append to the output (not recommended)
filenullThe output filename, used in sourcemap generation
sourcenullThe source filename, used in sourcemap generation
includeContenttrueWhether to include the source file in the sourcesContent property of the generated sourcemap

License

MIT