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 = {
5252 img : {
5353 //图片小于80k采用base64编码
5454 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+ }
6361 } ,
6462 css : {
6563 test : / \. c s s $ / ,
Original file line number Diff line number Diff line change 7474 "clean-css-cli" : " ^4.3.0" ,
7575 "commander" : " ^9.0.0" ,
7676 "cross-env" : " ^7.0.2" ,
77- "css-loader" : " ^5.0.0 " ,
77+ "css-loader" : " ^6.7.1 " ,
7878 "es3ify-loader" : " ^0.2.0" ,
7979 "eslint" : " ^7.11.0" ,
8080 "eslint-plugin-import" : " ^2.22.1" ,
105105 "shelljs" : " ^0.8.4" ,
106106 "style-loader" : " ^2.0.0" ,
107107 "uglify-es" : " ^3.3.9" ,
108- "url-loader" : " ^4.1.1" ,
109108 "watchify" : " ^3.11.1" ,
110109 "webpack" : " ^5.1.3" ,
111110 "webpack-cli" : " 4.2.0" ,
You can’t perform that action at this time.
0 commit comments