Webpack
The build system for Lore
The build system for Lore
Webpack is configured with support for the font formats ttf
, otf
, eot
, woff
, and woff2
.
This section of the Webpack config that controls this behavior is shown below:
{
test: /\.(ttf|otf|eot|woff(2)?)(\?[a-z0-9]+)?$/,
use: {
loader: 'file-loader',
options: {
name: ifProduction(
'assets/fonts/[name].[hash:8].[ext]',
'assets/fonts/[name].[ext]'
)
}
}
},