gulp browserify task
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.npmignore
package.json
readme.md
task.js

readme.md

#gtask-browserify

Spend less time getting gulp browserify to work and more time writing productive code.

var gulp = require('gulp');
var Bundler = require('gtask-browserify');

gulp.task('default', ['js']);

var bundler = Bundler({
    entries: ['./public/js/src/main.js'],
    dest: './public/js/dist',
    transform: ["babelify"],
});

gulp.task('js', function() {
    return bundler.bundle();
});

gulp.task('js-watch', function() {
    return bundler.watch();
})

API

  • .bundle() runs browserify
  • .watch() runs watchify

License

MIT