File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,12 @@ module.exports = {
52
52
img : {
53
53
//图片小于80k采用base64编码
54
54
test : / \. ( p n g | j p g | j p e g | g i f | w o f f | w o f f 2 | s v g | e o t | t t f ) $ / ,
55
- use : [
56
- {
57
- loader : 'url-loader' ,
58
- options : {
59
- limit : 150000
60
- }
61
- }
62
- ]
55
+ type : 'asset' ,
56
+ parser : {
57
+ dataUrlCondition : {
58
+ maxSize : 150000
59
+ }
60
+ }
63
61
} ,
64
62
css : {
65
63
test : / \. c s s $ / ,
Original file line number Diff line number Diff line change 74
74
"clean-css-cli" : " ^4.3.0" ,
75
75
"commander" : " ^9.0.0" ,
76
76
"cross-env" : " ^7.0.2" ,
77
- "css-loader" : " ^5.0.0 " ,
77
+ "css-loader" : " ^6.7.1 " ,
78
78
"es3ify-loader" : " ^0.2.0" ,
79
79
"eslint" : " ^7.11.0" ,
80
80
"eslint-plugin-import" : " ^2.22.1" ,
105
105
"shelljs" : " ^0.8.4" ,
106
106
"style-loader" : " ^2.0.0" ,
107
107
"uglify-es" : " ^3.3.9" ,
108
- "url-loader" : " ^4.1.1" ,
109
108
"watchify" : " ^3.11.1" ,
110
109
"webpack" : " ^5.1.3" ,
111
110
"webpack-cli" : " 4.2.0" ,
You can’t perform that action at this time.
0 commit comments