gulp-fit
A simple gulp plugin for applying fit-template engine with gulp.
usage
with a fit-template source like this (test.js):
var mode = '{{=$mode}}';
then a gulpfile.js file like this:
const fit = require('gulp-fit');
const gulp = require('gulp');
gulp.task('set_mode_debug', () => {
return gulp.src('src/test.js')
.pipe(fit({mode:'debug'}))
.pipe(gulp.dest('build'));
});
then the set_mode_debug task will create a test.js file in the build directory with contents like this:
var mode = 'debug';