-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathgulpfile.js
29 lines (28 loc) · 869 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* Created by shinate on 2018/10/12.
*/
var gulp = require('gulp');
var gvn = require('./index');
gulp.task('all', function () {
return gulp.src('_test/src/all.html')
.pipe(gvn({
append: {
to: [
['image', '%MD5%'],
{
type : 'css',
attr : ['href', 'custom-href'],
key : '_VeRsIoN_',
value: '%MDS%'
},
{
type : 'js',
attr : ['custom-src', 'node-js-loader'], // but "src" not matched, strictly use this custom
key : '_VeRsIoN_',
value: '%TS%'
}
]
}
}))
.pipe(gulp.dest('_test/dist'));
});