Merge pull request #2488 from overleaf/as-import-pr-708
[Imported] Vendor web fonts, (#708) GitOrigin-RevId: b286a0d4bac9d84f70bf9d4ff99220f67ce67425
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user