From c1e0af60f3db17b0fc97fbae1aebb5320dd22d27 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 21 Mar 2023 03:41:24 +0300 Subject: vnext: file-loader -> asset modules --- vnext/server/webpack.config.js | 6 +----- vnext/webpack.config.js | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) (limited to 'vnext') diff --git a/vnext/server/webpack.config.js b/vnext/server/webpack.config.js index 364f4414..d898c796 100644 --- a/vnext/server/webpack.config.js +++ b/vnext/server/webpack.config.js @@ -28,11 +28,7 @@ module.exports = () => { loader: 'babel-loader' }, { test: /\.(png|jpe?g|gif|svg)$/i, - use: [ - { - loader: 'file-loader', - }, - ], + type: 'asset/resource' }] }, plugins: [ diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js index 47bf98f9..65f2aad6 100644 --- a/vnext/webpack.config.js +++ b/vnext/webpack.config.js @@ -63,11 +63,7 @@ module.exports = () => { ], }, { test: /\.(png|jpe?g|gif|svg)$/i, - use: [ - { - loader: 'file-loader', - }, - ], + type: 'asset/resource' }] }, plugins: [ -- cgit v1.2.3