diff --git a/package.json b/package.json index 529ba92..787a66b 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "@types/intl": "^1.2.0", "babel-loader": "^8.2.5", "css-loader": "^6.7.1", - "file-loader": "^6.2.0", "style-loader": "^3.3.1", "ts-loader": "^9.4.1", "typescript": "^4.8.4", diff --git a/webpack.config.js b/webpack.config.js index 1d4e48f..6964530 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,11 +10,9 @@ const common = { }, { test: /\.html$/i, - use: { - loader: 'file-loader', - options: { - name: '[name].[ext]', - }, + type: 'asset/resource', + generator: { + filename: '[name][ext]', }, }, ],