mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-16 10:35:31 +01:00
26 lines
583 B
JavaScript
26 lines
583 B
JavaScript
|
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']);
|