Skip to content

Instantly share code, notes, and snippets.

@khades
Created June 22, 2016 20:36
Show Gist options
  • Save khades/0a2b4466f94c0ba05f2f2dd02ecbb32c to your computer and use it in GitHub Desktop.
Save khades/0a2b4466f94c0ba05f2f2dd02ecbb32c to your computer and use it in GitHub Desktop.
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