mirror of
https://gitlab.silvrtree.co.uk/martind2000/aodb.git
synced 2025-02-14 13:09:16 +00:00
21 lines
580 B
JavaScript
21 lines
580 B
JavaScript
var gulp = require('gulp'),
|
|
minifyHTML = require('gulp-minify-html');
|
|
|
|
module.exports = gulp.task('compile-template', function () {
|
|
var ret;
|
|
if (environment === 'development') {
|
|
ret = gulp.src('./www/app/**/*.tpl.html')
|
|
.pipe(gulp.dest('./www/app/'));
|
|
} else {
|
|
var opts = {
|
|
conditionals: true,
|
|
spare: true
|
|
};
|
|
ret = gulp.src(['./app/**/*.tpl.html', './app/**/*.html'])
|
|
.pipe(minifyHTML(opts))
|
|
.pipe(gulp.dest('./www/app/'));
|
|
|
|
}
|
|
return ret;
|
|
});
|