From 76f35acc17e6fd07d524792e6b7d2735b2b677a0 Mon Sep 17 00:00:00 2001 From: _Bastler <_Bastler@bstly.de> Date: Fri, 28 May 2021 15:46:25 +0200 Subject: [PATCH] update --- front/webpack.config.ts | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/front/webpack.config.ts b/front/webpack.config.ts index 22a1bf46..a066d260 100644 --- a/front/webpack.config.ts +++ b/front/webpack.config.ts @@ -102,21 +102,16 @@ module.exports = { } }, { - test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/, - use: [ - { - loader: 'file-loader', - options: { - name: '[name].[ext]', - outputPath: 'fonts/' - } - } - ] - }, - { - test: /\.(ttf|eot|svg|png|gif|jpg)$/, + test: /\.(eot|svg|png|gif|jpg)$/, exclude: /node_modules/, type: 'asset' + }, + { + test: /\.(woff(2)?|ttf)$/, + type: 'asset', + generator: { + filename: 'fonts/[name][ext]' + } } ], },