mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-17 10:45:41 +01:00
e6e79917f7
* Bump dependencies
29 lines
667 B
JavaScript
29 lines
667 B
JavaScript
const gulp = require('gulp');
|
|
const googleWebFonts = require('gulp-google-webfonts');
|
|
const del = require('del');
|
|
|
|
const paths = {
|
|
cssDir: './src/css/',
|
|
node_modules: './node_modules/',
|
|
dist: './dist/',
|
|
resources: './resources/',
|
|
};
|
|
|
|
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));
|
|
}
|
|
|
|
exports.clean = clean;
|
|
exports.webfonts = gulp.series(clean, webfonts);
|
|
exports['prebuild:renderer'] = webfonts;
|