Skip to content

Instantly share code, notes, and snippets.

@wesme1337
wesme1337 / gulpfile.js
Created March 9, 2018 20:00
Mura 7.0.* Combine, Compile, and Minify Handlebars Form Templates with Gulp
// Copy the root level templates folder [sitename]/js/src/templates into your theme [sitename]/includes/themes/[themename]/js/src/templates
// Modify the templates and run gulp inside the theme to combine all .hbs, compile, and minify the handlebars template
//Destinations
var destJS = 'compiled/js';
//Gulp plugins
var gulp = require('gulp'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),