Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Browserify, babel, source maps, gulp, es6, babelify
'use strict';
var gulp = require('gulp');
var browserify = require('browserify');
var babelify = require('babelify');
var source = require('vinyl-source-stream');
gulp.task('browserify', function() {
return browserify({ debug: true })
.transform(babelify)
.require('./src/app/index.js', { entry: true })
.bundle()
.on('error', function handleError(err) {
console.error(err.toString());
this.emit('end');
})
.pipe(source('index.js'))
.pipe(gulp.dest('.tmp/app'));
});
@antongorodezkiy

This comment has been minimized.

Copy link

antongorodezkiy commented Jul 29, 2016

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.