Skip to content

Instantly share code, notes, and snippets.

@wiledal
Last active December 5, 2016 15:01
Show Gist options
  • Select an option

  • Save wiledal/c25236aa0cafcc1996fee5dd300c1d4f to your computer and use it in GitHub Desktop.

Select an option

Save wiledal/c25236aa0cafcc1996fee5dd300c1d4f to your computer and use it in GitHub Desktop.
var gulp = require('gulp')
var babel = require('gulp-babel')
var replace = require('gulp-replace')
gulp.task('js', () => {
gulp.src('source/js/**/*.js')
.pipe(replace('html`', '`')) // Replace 'html`' with just '`'
.pipe(babel({
presets: ['es2015']
})
.pipe(gulp.dest('dist/js')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment