bitwarden-estensione-browser/gulpfile.js

26 lines
571 B
JavaScript
Raw Normal View History

2018-07-18 16:54:22 +02:00
const gulp = require('gulp');
const googleWebFonts = require('gulp-google-webfonts');
2018-07-18 17:15:23 +02:00
const del = require('del');
2018-07-18 16:54:22 +02:00
2018-07-18 17:15:23 +02:00
const paths = {
cssDir: './src/css/',
};
function clean() {
return del([paths.cssDir]);
}
2018-07-18 16:54:22 +02:00
2018-07-18 17:15:23 +02:00
function webfonts() {
2018-07-18 16:54:22 +02:00
return gulp.src('./webfonts.list')
.pipe(googleWebFonts({
fontsDir: 'webfonts',
2018-07-18 17:15:23 +02:00
cssFilename: 'webfonts.css',
format: 'woff',
2018-07-18 16:54:22 +02:00
}))
2018-07-18 17:15:23 +02:00
.pipe(gulp.dest(paths.cssDir));
};
gulp.task('clean', clean);
gulp.task('webfonts', ['clean'], webfonts);
gulp.task('build', ['webfonts']);