Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
const elixir = require('laravel-elixir');
elixir.extend('nghtml2js', function(sources,moduleName,prefix,destFolder,destfileName) {
const ngHtml2Js = require("gulp-ng-html2js");
const htmlmin = require('gulp-htmlmin');
const concat = require("gulp-concat");
const uglify = require("gulp-uglify");
new elixir.Task('nghtml2js',function(){
return gulp.src(sources)
collapseWhitespace: true,
includeAutoGeneratedTags: false
moduleName: moduleName,
prefix: prefix
// usage example
elixir(mix => {
// mix styles and scripts then call this snippet to compile html templates into angularjs module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment