diff options
Diffstat (limited to 'tools/tasks/build.html_css.prod.ts')
-rw-r--r-- | tools/tasks/build.html_css.prod.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/tasks/build.html_css.prod.ts b/tools/tasks/build.html_css.prod.ts new file mode 100644 index 0000000..93d0aa9 --- /dev/null +++ b/tools/tasks/build.html_css.prod.ts @@ -0,0 +1,24 @@ +import * as merge from 'merge-stream'; +import {join} from 'path'; +import {APP_SRC, TMP_DIR} from '../config'; + +// const HTML_MINIFIER_OPTS = { empty: true }; + +export = function buildJSDev(gulp, plugins) { + return function () { + + return merge(minifyHtml(), minifyCss()); + + function minifyHtml() { + return gulp.src(join(APP_SRC, '**/*.html')) + // .pipe(plugins.minifyHtml(HTML_MINIFIER_OPTS)) + .pipe(gulp.dest(TMP_DIR)); + } + + function minifyCss() { + return gulp.src(join(APP_SRC, '**/*.css')) + .pipe(plugins.minifyCss()) + .pipe(gulp.dest(TMP_DIR)); + } + }; +}; |