Skip to content

Commit a59fac8

Browse files
authored
Merge pull request #344 from SuperMap/dependabot/npm_and_yarn/css-loader-6.7.1
Bump css-loader from 5.2.7 to 6.7.1
2 parents a0e45a1 + ef0df83 commit a59fac8

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
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",
@@ -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)