1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 22:33:35 +00:00

gulp task for webfonts

This commit is contained in:
Kyle Spearrin
2018-08-08 12:47:54 -04:00
parent 057b684f02
commit 9e7438e0b0
7 changed files with 1613 additions and 103 deletions

25
gulpfile.js Normal file
View File

@@ -0,0 +1,25 @@
const gulp = require('gulp');
const googleWebFonts = require('gulp-google-webfonts');
const del = require('del');
const paths = {
cssDir: './src/css/',
};
function clean() {
return del([paths.cssDir]);
}
function webfonts() {
return gulp.src('./webfonts.list')
.pipe(googleWebFonts({
fontsDir: 'webfonts',
cssFilename: 'webfonts.css',
format: 'woff',
}))
.pipe(gulp.dest(paths.cssDir));
};
gulp.task('clean', clean);
gulp.task('webfonts', ['clean'], webfonts);
gulp.task('prebuild:renderer', ['webfonts']);