1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-02-14 21:10:25 +01:00

fix assets revisioning

This commit is contained in:
Matthias Kretschmann 2017-03-26 00:37:13 +01:00
parent 7602a7f50c
commit 1c80c1e29b
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC

View File

@ -206,7 +206,10 @@ const jsProject = () => src(SRC + '/_assets/js/kremalicious3.js')
.pipe($.rename({suffix: '.min'})) .pipe($.rename({suffix: '.min'}))
.pipe($.if(isProduction, $.rev())) .pipe($.if(isProduction, $.rev()))
.pipe(dest(DIST + '/assets/js/')) .pipe(dest(DIST + '/assets/js/'))
.pipe($.if(isProduction, $.rev.manifest())) .pipe($.if(isProduction, $.rev.manifest({
base: DIST + '/assets/js/',
merge: true
})))
.pipe($.if(isProduction, dest(DIST + '/assets/js/'))) .pipe($.if(isProduction, dest(DIST + '/assets/js/')))
// Service Worker js // Service Worker js
@ -229,7 +232,10 @@ export const icons = () => src(iconset.icons)
.pipe($.svgSprite(SPRITE)) .pipe($.svgSprite(SPRITE))
.pipe($.if(isProduction, $.rev())) .pipe($.if(isProduction, $.rev()))
.pipe(dest(iconset.dist)) .pipe(dest(iconset.dist))
.pipe($.if(isProduction, $.rev.manifest())) .pipe($.if(isProduction, $.rev.manifest({
base: iconset.dist,
merge: true
})))
.pipe($.if(isProduction, dest(iconset.dist))) .pipe($.if(isProduction, dest(iconset.dist)))
@ -250,7 +256,10 @@ export const images = () =>
}))) })))
.pipe($.if(isProduction, $.rev())) .pipe($.if(isProduction, $.rev()))
.pipe(dest(DIST + '/assets/img/')) .pipe(dest(DIST + '/assets/img/'))
.pipe($.if(isProduction, $.rev.manifest())) .pipe($.if(isProduction, $.rev.manifest({
base: DIST + '/assets/img/',
merge: true
})))
.pipe($.if(isProduction, dest(DIST + '/assets/img/'))) .pipe($.if(isProduction, dest(DIST + '/assets/img/')))