forked from usgs/waterdataui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
26 lines (22 loc) · 819 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
const gulp = require('gulp');
const RevAll = require('gulp-rev-all');
gulp.task('revall', function() {
return gulp.src('dist/**')
.pipe(RevAll.revision({
dontGlobal: [
/rev-manifest.json$/,
// Skip already hashed files
/.+\.[a-f0-9]{8}\..+$/,
// Skip leaflet markers that are referenced via Javascript
/marker-icon.png$/,
/marker-icon-2x.png$/,
/marker-shadow.png$/,
//Skip USWDS svg
/.*svg$/
],
includeFilesInManifest: ['.css', '.js', '.ico', '.png', '.webmanifest', '.xml']
}))
.pipe(gulp.dest('dist'))
.pipe(RevAll.manifestFile({fileName: 'manifest.json'}))
.pipe(gulp.dest('dist'));
});