blob: 93d0aa91812d0401b70aad369730e088a2e39b56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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));
}
};
};
|