diff --git a/webpack.common.js b/webpack.common.js index 1c6b076..b97ed1c 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -30,15 +30,14 @@ module.exports = { ] }, { - test: /\.(png|jp(e*)g|svg)$/, - use: [{ - loader: 'url-loader', - options: { - limit: 8000, // Convert images < 8kb to base64 strings - name: 'images/[hash]-[name].[ext]' - } - }] - } + test: /\.svg/, + type: 'asset/inline' + }, + { + + test: /\.(jp(e*)g|png|gif)$/, + type: 'asset/resource', + }, ] }, resolve: {