Merge pull request #2488 from overleaf/as-import-pr-708

[Imported] Vendor web fonts, (#708)

GitOrigin-RevId: b286a0d4bac9d84f70bf9d4ff99220f67ce67425
This commit is contained in:
Alasdair Smith
2020-01-15 04:20:37 +00:00
committed by Copybot
parent 8a667d3933
commit a084d620ae
48 changed files with 2548 additions and 421 deletions
+15
View File
@@ -113,6 +113,21 @@ module.exports = {
{ loader: 'less-loader' }
]
},
{
// Load fonts
test: /\.(woff|woff2)$/,
use: [
{
loader: 'file-loader',
options: {
// Output to public/font
outputPath: 'fonts',
publicPath: '/fonts/',
name: '[name].[ext]'
}
}
]
},
{
// These options are necessary for handlebars to have access to helper
// methods