Last active
January 3, 2016 01:59
-
-
Save joeLepper/8393135 to your computer and use it in GitHub Desktop.
gulp-jade / gulp-rename weirdness
This file contains hidden or 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
gulp.task('jade', function(){ | |
gulp.src(['src/js/directives/**/jade/*.jade', 'src/jade/views/*.jade']) | |
.pipe(jade({ pretty : true })) | |
.pipe(rename(function(dir,base,ext){ | |
var result = base + ext; | |
return result; | |
})) | |
.pipe(gulp.dest('./src/html')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear future humans, use this to solve your problem: https://npmjs.org/package/gulp-flatten