Skip to content

Commit d505ae2

Browse files
committed
Remove a couple of loaders and replace them with webpack5 asset module
1 parent a9d7885 commit d505ae2

File tree

4 files changed

+2
-307
lines changed

4 files changed

+2
-307
lines changed

package-lock.json

Lines changed: 0 additions & 294 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"css-minimizer-webpack-plugin": "^3.3.1",
3939
"csso-loader": "^0.3.1",
4040
"eslint": "^8.5.0",
41-
"file-loader": "^6.2.0",
4241
"html-webpack-plugin": "^5.5.0",
4342
"i18next": "^21.6.3",
4443
"less": "^4.1.2",
@@ -56,7 +55,6 @@
5655
"ts-loader": "^9.2.6",
5756
"ts-node": "^10.4.0",
5857
"typescript": "^4.5.4",
59-
"url-loader": "^4.1.1",
6058
"webpack": "^5.65.0",
6159
"webpack-bundle-analyzer": "^4.5.0",
6260
"webpack-cli": "^4.9.1",

src/styles/list/_tiles.less

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@
6161
.wsb-tile-header.with-stub {
6262
height: 230px;
6363

64-
background: url('../images/tile-stub.svg');
64+
background: url('../images/tile-stub.svg') center;
6565
background-size: cover;
66-
background-position: center;
6766

6867
@media (max-width: 600px) {
6968
height: 182px;

webpack.config.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,7 @@ let webpackConfig = {
8181
},
8282
{
8383
test: /\.(png|svg)$/,
84-
use: [
85-
{
86-
loader: 'url-loader',
87-
options: {
88-
'limit': 10000,
89-
'name': '[name][hash:6].[ext]'
90-
}
91-
}
92-
]
84+
type: 'asset',
9385
}
9486
]
9587
},

0 commit comments

Comments
 (0)