mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-22 17:50:07 +01:00
revision woff2 files too, fixes #4
This commit is contained in:
parent
ff5a38e58a
commit
84d32102df
@ -229,7 +229,7 @@ gulp.task('fonts', function() {
|
|||||||
gulp.task('rev', function() {
|
gulp.task('rev', function() {
|
||||||
// globbing is slow so do everything conditionally for faster dev build
|
// globbing is slow so do everything conditionally for faster dev build
|
||||||
if (isProduction) {
|
if (isProduction) {
|
||||||
return gulp.src(DIST + '/assets/**/*.{css,js,png,jpg,jpeg,svg,eot,ttf,woff}')
|
return gulp.src(DIST + '/assets/**/*.{css,js,png,jpg,jpeg,svg,eot,ttf,woff,woff2}')
|
||||||
.pipe($.rev())
|
.pipe($.rev())
|
||||||
.pipe(gulp.dest(DIST + '/assets/'))
|
.pipe(gulp.dest(DIST + '/assets/'))
|
||||||
// output rev manifest for next replace task
|
// output rev manifest for next replace task
|
||||||
@ -248,7 +248,7 @@ gulp.task('rev:replace', function() {
|
|||||||
if (isProduction) {
|
if (isProduction) {
|
||||||
var manifest = gulp.src(DIST + '/assets/rev-manifest.json');
|
var manifest = gulp.src(DIST + '/assets/rev-manifest.json');
|
||||||
|
|
||||||
return gulp.src(DIST + '/**/*.{html,xml,txt,json,css,js,png,jpg,jpeg,svg,eot,ttf,woff}')
|
return gulp.src(DIST + '/**/*.{html,xml,txt,json,css,js,png,jpg,jpeg,svg,eot,ttf,woff,woff2}')
|
||||||
.pipe($.revReplace({ manifest: manifest }))
|
.pipe($.revReplace({ manifest: manifest }))
|
||||||
.pipe(gulp.dest(DIST));
|
.pipe(gulp.dest(DIST));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user