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