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:
parent
49d49b79bf
commit
186b1aedcb
@ -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'] = {
|
||||
|
@ -36,6 +36,7 @@ module.exports = {
|
||||
},
|
||||
{
|
||||
test: /.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
|
||||
exclude: /loading.svg/,
|
||||
use: [{
|
||||
loader: 'file-loader',
|
||||
options: {
|
||||
|
Loading…
Reference in New Issue
Block a user