Skip to content

Commit ef0df83

Browse files
committed
【update】css-loader升级 5.0.0 -> 6.7.1; review by songym
1 parent 8857c7a commit ef0df83

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

build/webpack.config.base.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,12 @@ module.exports = {
5252
img: {
5353
//图片小于80k采用base64编码
5454
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-
]
55+
type: 'asset',
56+
parser: {
57+
dataUrlCondition: {
58+
maxSize: 150000
59+
}
60+
}
6361
},
6462
css: {
6563
test: /\.css$/,

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@
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",

0 commit comments

Comments
 (0)