From adb8809d43648ea0a64d6845bb39aa3bd0e005a6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Aug 2021 14:31:30 +0200 Subject: Fix webpack config --- client/webpack/webpack.video-embed.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'client/webpack/webpack.video-embed.js') diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js index 2ecbd09af..8320d01e7 100644 --- a/client/webpack/webpack.video-embed.js +++ b/client/webpack/webpack.video-embed.js @@ -105,21 +105,23 @@ module.exports = function () { { test: /\.html$/, - use: 'raw-loader', exclude: [ helpers.root('src/index.html'), helpers.root('src/standalone/videos/embed.html'), helpers.root('src/standalone/videos/test-embed.html') - ] + ], + type: 'asset/source' }, { - test: /\.(jpg|png|gif)$/, - use: 'url-loader' + test: /\.(jpg|png|gif|svg)$/, + type: 'asset' }, - { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'url-loader?limit=10000&minetype=application/font-woff' }, - { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'file-loader' } + { + test: /\.(ttf|eot|woff2?)$/, + type: 'asset' + } ] }, -- cgit v1.2.3