Skip to content

Commit 5090102

Browse files
committed
remove file loader
1 parent d69d4da commit 5090102

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

config/loaders.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,7 @@ module.exports = {
1313
return [
1414
/* FontsLoader */ {
1515
test: /\.(woff|woff2)$/,
16-
use: [
17-
{
18-
loader: 'file-loader',
19-
options: {
20-
outputPath: 'assets',
21-
},
22-
},
23-
],
16+
type: 'asset/resource',
2417
},
2518
/* ImagesLoader */ {
2619
test: /\.(png|jpe?g|gif|svg)$/,

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"eslint-config-prettier": "^8.5.0",
3737
"eslint-plugin-prettier": "^4.2.1",
3838
"eslint-webpack-plugin": "^3.2.0",
39-
"file-loader": "^6.2.0",
4039
"image-webpack-loader": "^7.0.1",
4140
"js-yaml": "^4.1.0",
4241
"json2csv": "^5.0.6",

yarn.lock

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,7 +3006,6 @@ __metadata:
30063006
eslint-config-prettier: ^8.5.0
30073007
eslint-plugin-prettier: ^4.2.1
30083008
eslint-webpack-plugin: ^3.2.0
3009-
file-loader: ^6.2.0
30103009
image-webpack-loader: ^7.0.1
30113010
js-yaml: ^4.1.0
30123011
json2csv: ^5.0.6
@@ -5548,18 +5547,6 @@ __metadata:
55485547
languageName: node
55495548
linkType: hard
55505549

5551-
"file-loader@npm:^6.2.0":
5552-
version: 6.2.0
5553-
resolution: "file-loader@npm:6.2.0"
5554-
dependencies:
5555-
loader-utils: ^2.0.0
5556-
schema-utils: ^3.0.0
5557-
peerDependencies:
5558-
webpack: ^4.0.0 || ^5.0.0
5559-
checksum: faf43eecf233f4897b0150aaa874eeeac214e4f9de49738a9e0ef734a30b5260059e85b7edadf852b98e415f875bd5f12587768a93fd52aaf2e479ecf95fab20
5560-
languageName: node
5561-
linkType: hard
5562-
55635550
"file-type@npm:5.2.0, file-type@npm:^5.2.0":
55645551
version: 5.2.0
55655552
resolution: "file-type@npm:5.2.0"

0 commit comments

Comments
 (0)