Created
June 22, 2016 20:36
-
-
Save khades/0a2b4466f94c0ba05f2f2dd02ecbb32c 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
var gulp = require('gulp'); | |
var bro = require('gulp-bro'); | |
var babelify = require('babelify') | |
var uglify = require('gulp-uglify'); | |
var sourceFile = 'js/mithril-app/app.js', | |
destFolder = './js/', | |
destFile = 'app.js'; | |
gulp.task('build-js', function () { | |
gulp.src('./js/mithril-app/app.js') | |
.pipe(bro({ transform: [babelify.configure({ presets: ['es2015'] })] })) | |
.pipe(uglify()) | |
.pipe(gulp.dest('./js')) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment