1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-26 12:25:20 +01:00

clean out unused font fonts

This commit is contained in:
Kyle Spearrin 2017-11-15 15:03:16 -05:00
parent 6ab5a07c20
commit 85447bb2ab

View File

@ -27,7 +27,13 @@ const sidebarActionManifestObj = {
function dist(browserName, manifest) { function dist(browserName, manifest) {
return gulp.src(paths.dist + '**/*') return gulp.src(paths.dist + '**/*')
.pipe(gulpif(browserName !== 'edge', filter(['**', '!dist/edge/**/*', '!dist/popup/fonts/glyphicons*']))) .pipe(gulpif(browserName !== 'edge', filter([
'**',
'!dist/edge/**/*',
'!dist/popup/fonts/*',
'dist/popup/fonts/Open_Sans*.woff',
'dist/popup/fonts/fontawesome*.woff'
])))
.pipe(gulpif('popup/index.html', replace('__BROWSER__', browserName))) .pipe(gulpif('popup/index.html', replace('__BROWSER__', browserName)))
.pipe(gulpif('manifest.json', jeditor(manifest))) .pipe(gulpif('manifest.json', jeditor(manifest)))
.pipe(zip(`dist-${browserName}.zip`)) .pipe(zip(`dist-${browserName}.zip`))
@ -83,7 +89,12 @@ function copyDistEdge(source, dest) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
gulp.src(source) gulp.src(source)
.on('error', reject) .on('error', reject)
.pipe(filter(['**', '!dist/popup/fonts/glyphicons*'])) .pipe(filter([
'**',
'!dist/popup/fonts/*',
'dist/popup/fonts/Open_Sans*.woff',
'dist/popup/fonts/fontawesome*.woff'
]))
.pipe(gulpif('popup/index.html', replace('__BROWSER__', 'edge'))) .pipe(gulpif('popup/index.html', replace('__BROWSER__', 'edge')))
.pipe(gulpif('manifest.json', jeditor((manifest) => { .pipe(gulpif('manifest.json', jeditor((manifest) => {
manifest['-ms-preload'] = { manifest['-ms-preload'] = {