gulp-browserify-globs
v0.1.2
Published
Gulp + Browserify + Globs in the right way
Downloads
18
Readme
gulp-browserify-globs
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