mirror of
https://github.com/trambarhq/relaks-wordpress-example.git
synced 2025-09-25 06:51:30 +02:00
Fixed packaging of font files.
This commit is contained in:
@@ -51,14 +51,10 @@ const clientConfig = {
|
||||
],
|
||||
},
|
||||
{
|
||||
test: /fonts.*\.woff2?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
||||
loader: 'file-loader',
|
||||
},
|
||||
{
|
||||
test: /fonts.*\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
||||
loader: 'file-loader',
|
||||
options: {
|
||||
emitFile: false,
|
||||
test: /fonts.*\.(woff2?|ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
||||
type: 'asset/resource',
|
||||
generator: {
|
||||
filename: '[hash][ext][query]',
|
||||
}
|
||||
},
|
||||
]
|
||||
|
Reference in New Issue
Block a user