1
0
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:
Chung Leong
2022-09-18 04:33:52 +02:00
parent e254dd6d7d
commit a0f3b8cd36
28 changed files with 9 additions and 21 deletions

View File

@@ -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]',
}
},
]