We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8857c7a commit ef0df83Copy full SHA for ef0df83
build/webpack.config.base.js
@@ -52,14 +52,12 @@ module.exports = {
52
img: {
53
//图片小于80k采用base64编码
54
test: /\.(png|jpg|jpeg|gif|woff|woff2|svg|eot|ttf)$/,
55
- use: [
56
- {
57
- loader: 'url-loader',
58
- options: {
59
- limit: 150000
60
- }
61
62
- ]
+ type: 'asset',
+ parser: {
+ dataUrlCondition: {
+ maxSize: 150000
+ }
63
},
64
css: {
65
test: /\.css$/,
package.json
@@ -105,7 +105,6 @@
105
"shelljs": "^0.8.4",
106
"style-loader": "^2.0.0",
107
"uglify-es": "^3.3.9",
108
- "url-loader": "^4.1.1",
109
"watchify": "^3.11.1",
110
"webpack": "^5.1.3",
111
"webpack-cli": "4.2.0",
0 commit comments