From 62d7fec5ce99151bb3e9f1ab07adefd376dcc968 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 25 Oct 2022 20:42:15 +0800 Subject: [PATCH] chore: add webp,webm support in webpack --- client/web/build/webpack.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/web/build/webpack.config.ts b/client/web/build/webpack.config.ts index 50814228..845c3886 100644 --- a/client/web/build/webpack.config.ts +++ b/client/web/build/webpack.config.ts @@ -288,7 +288,7 @@ const config: Configuration = { ], }, { - test: /\.(png|jpg|gif|woff|woff2|svg|eot|ttf)$/, + test: /\.(png|jpg|gif|woff|woff2|svg|eot|ttf|webp|webm)$/, loader: 'url-loader', options: { limit: 8192,