gulp-ftlmin
v0.0.3
Published
gulp plugin to minify FTL.(*.ftl -> freemarker template files)
Downloads
85
Maintainers
Readme
gulp plugin to minify FTL.
minify the freemarker files (*.ftl)
base on html-minifier
inspire from gulp-htmlmin
Installation
npm i gulp-ftlmin --save-dev
Usage
var gulp = require('gulp');
var ftlmin = require('gulp-ftlmin');
gulp.task('minify', function() {
return gulp.src('src/*.ftl')
.pipe(ftlmin({
removeFtlComments: true,
minifyFtl: true
// others options for html-minifier...
}))
.pipe(gulp.dest('dist'));
});
See the html-minifier docs for options.