0.0.1 • Published 9 years ago
gulp-switcher v0.0.1
gulp-switcher
A gulp plugin switch place-holder html to code of production enviroment(.php, .mtml etc)
Usage
<!--% somecode for production enviroment %-->
<!-- placeholder -->
some placeholder is here.
<!-- /placeholder -->
var switcher = require('gulp-switcher');
gulp.task('switch', function(){
gulp.src('app/**/*.html)
.pipe(switcher({ext: '.php'}))
.pipe(gulp.dest('dist'));
});
option ext: extention of output files
LICENSE
(MIT License)
Copyright(c)2015 kske
0.0.1
9 years ago