Commit bb981e9 1 parent a2a3655 commit bb981e9 Copy full SHA for bb981e9
File tree 5 files changed +14
-42
lines changed
5 files changed +14
-42
lines changed Original file line number Diff line number Diff line change 31
31
"cookie" : " 0.4.0" ,
32
32
"core-js" : " 3.6.5" ,
33
33
"detect-node" : " 2.0.3" ,
34
- "file-loader" : " 6.2.0" ,
35
34
"filesize" : " 2.0.4" ,
36
35
"generic-diff" : " 1.0.1" ,
37
36
"he" : " 1.1.1" ,
Original file line number Diff line number Diff line change 2
2
* @flow strict
3
3
* Bogus file for use in .flowconfig.
4
4
* Non-JavaScript files are mapped to here, so we can require() them
5
- * via Webpack's file-loader without Flow triggering import errors.
5
+ * via Webpack's asset modules without Flow triggering import errors.
6
6
*/
7
7
export default ({}: mixed);
Original file line number Diff line number Diff line change 10
10
* This module is used to look up assets in webpack's manifest, which maps
11
11
* asset names to their public URLs (which include a hash in the filename
12
12
* in production). This is really only useful for looking up JavaScript
13
- * bundles; for other types of assets, we use webpack's file-loader . This
13
+ * bundles; for other types of assets, we use webpack's asset modules . This
14
14
* module shouldn't be used in any client scripts, as it makes no sense
15
15
* there. The actual manifest file (./build/rev-manifest) doesn't exist
16
16
* until after the client scripts are bundled.
Original file line number Diff line number Diff line change @@ -35,32 +35,22 @@ module.exports = {
35
35
} ,
36
36
{
37
37
test : / \. ( p n g | s v g | j p g | g i f ) $ / ,
38
- use : [
39
- {
40
- loader : 'file-loader' ,
41
- options : {
42
- name : (
43
- PRODUCTION_MODE
44
- ? '[name]-[hash:7].[ext]'
45
- : '[name].[ext]'
46
- ) ,
47
- } ,
48
- } ,
49
- ] ,
38
+ type : 'asset/resource' ,
39
+ generator : {
40
+ filename : PRODUCTION_MODE
41
+ ? '[name]-[hash:7][ext]'
42
+ : '[name][ext]' ,
43
+ } ,
50
44
} ,
51
45
{
52
46
test : / \. l e s s $ / ,
47
+ type : 'asset/resource' ,
48
+ generator : {
49
+ filename : PRODUCTION_MODE
50
+ ? '[name]-[hash:7].css'
51
+ : '[name].css' ,
52
+ } ,
53
53
use : [
54
- {
55
- loader : 'file-loader' ,
56
- options : {
57
- name : (
58
- PRODUCTION_MODE
59
- ? '[name]-[hash:7].css'
60
- : '[name].css'
61
- ) ,
62
- } ,
63
- } ,
64
54
{
65
55
loader : 'less-loader' ,
66
56
options : { lessOptions} ,
Original file line number Diff line number Diff line change @@ -2856,14 +2856,6 @@ file-entry-cache@^5.0.1:
2856
2856
dependencies :
2857
2857
flat-cache "^2.0.1"
2858
2858
2859
-
2860
- version "6.2.0"
2861
- resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-6.2.0.tgz#baef7cf8e1840df325e4390b4484879480eebe4d"
2862
- integrity sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==
2863
- dependencies :
2864
- loader-utils "^2.0.0"
2865
- schema-utils "^3.0.0"
2866
-
2867
2859
2868
2860
version "2.0.2"
2869
2861
resolved "https://registry.yarnpkg.com/file-url/-/file-url-2.0.2.tgz#e951784d79095127d3713029ab063f40818ca2ae"
@@ -3801,15 +3793,6 @@ loader-utils@^1.4.0:
3801
3793
emojis-list "^3.0.0"
3802
3794
json5 "^1.0.1"
3803
3795
3804
- loader-utils@^2.0.0 :
3805
- version "2.0.0"
3806
- resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.0.tgz#e4cace5b816d425a166b5f097e10cd12b36064b0"
3807
- integrity sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==
3808
- dependencies :
3809
- big.js "^5.2.2"
3810
- emojis-list "^3.0.0"
3811
- json5 "^2.1.2"
3812
-
3813
3796
locate-path@^2.0.0 :
3814
3797
version "2.0.0"
3815
3798
resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"
You can’t perform that action at this time.
0 commit comments