apflora
Version:
Aktionsplan Flora Kt. Zürich
20 lines (17 loc) • 631 B
JavaScript
/* browserify task
---------------
Bundle javascripty things with browserify!
If the watch task is running, this uses watchify instead
of browserify for faster bundling using caching.
*/
var browserify = require('browserify');
var gulp = require('gulp');
var source = require('vinyl-source-stream');
gulp.task('browserify', function() {
return browserify('./src/apflora.js')
.bundle()
// Pass desired output filename to vinyl-source-stream
.pipe(source('apflora_browserified.js'))
// Start piping stream to tasks!
.pipe(gulp.dest('./src'));
});