mirror of https://github.com/bitwarden/web.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
571 B
25 lines
571 B
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('build', ['webfonts']);
|
|
|