Created
September 25, 2015 15:25
-
-
Save koolii/22435d1174b5ca27482c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gulp from 'gulp'; | |
import browserify from 'browserify'; | |
import babelify from 'babelify'; | |
import source from 'vinyl-source-stream'; | |
gulp.task('default', () => { | |
console.log("default log"); | |
}); | |
gulp.task('build', () => { | |
browserify('./src/app.jsx', { debug: true }) | |
.transform(babelify) | |
.bundle() | |
.on('error', (err) => { | |
console.debug("Error: " + err.message); | |
}) | |
.pipe(source('bundle.js')) | |
.pipe(gulp.dest('./built')) | |
}); | |
gulp.task('default', ['build']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment