1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

local webfonts

This commit is contained in:
Kyle Spearrin
2018-07-18 10:32:44 -04:00
parent 2382d5028b
commit 3c9354ba2f
16 changed files with 94 additions and 4 deletions

View File

@@ -40,6 +40,17 @@ const moduleRules = [
test: /\.(html)$/,
loader: 'html-loader',
},
{
test: /.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
exclude: /loading.svg/,
use: [{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'fonts/',
},
}],
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
exclude: /.*(fontawesome-webfont)\.svg/,