gbg

gulp-browserify-globs

Gulp + Browserify + Globs in the right way

Showing:

Popularity

Downloads/wk

2

Maintenance

No Maintenance Data Available

Package

Dependencies

7

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

gulp-browserify-globs travis

Gulp + Browserify + Globs in the right way.

It's just a small package implementing the browserify-with-globs recipe in the official gulp doc.

Install

$ npm install --save-dev gulp-browserify-globs

Usage

browserify(glob, options)

var gulp = require('gulp');
var browserify = require('gulp-browserify-globs');
var reactify = require('reactify');

gulp.task('browserify', function () {
  return browserify(['source/**/*.js'], {
    debug: false,
    transform: [reactify],
    uglify: true
  })
  .pipe(gulp.dest('result'));
});

glob

Type: String or Array<String>

A file or glob pattern to browserify.

Options

Type: Object

An object containing plugin and Browserify options. Available options include the options for browserify and the followings:

outfile

Type: String
Default: 'bundle.js'

An output file name.

uglify

Type: Boolean or Object
Default: false

When set, uglify the bundled result using gulp-uglify. When it's an object, pass it to uglify().

License

MIT @ Jun

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100