mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-22 01:36:55 +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() {
|
||||
// globbing is slow so do everything conditionally for faster dev build
|
||||
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(gulp.dest(DIST + '/assets/'))
|
||||
// output rev manifest for next replace task
|
||||
@ -248,7 +248,7 @@ gulp.task('rev:replace', function() {
|
||||
if (isProduction) {
|
||||
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(gulp.dest(DIST));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user