1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-23 08:30:14 +01:00

exclude loading.svg. filter glyphicons

This commit is contained in:
Kyle Spearrin 2017-11-10 08:29:40 -05:00
parent 49d49b79bf
commit 186b1aedcb
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -36,6 +36,7 @@ module.exports = {
},
{
test: /.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
exclude: /loading.svg/,
use: [{
loader: 'file-loader',
options: {