gulp-browserify-globs

0.1.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i gulp-browserify-globs

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • utatti