UI: Remove file-loader and url-loader
These loaders got replaced by webpack asset modules: https://webpack.js.org/guides/asset-modules/
This commit is contained in:
parent
cb18f823b1
commit
dd910dc76a
|
@ -45,7 +45,6 @@
|
|||
"eslint": "^6.8.0",
|
||||
"eslint-loader": "^4.0.1",
|
||||
"eslint-plugin-react": "^7.26.1",
|
||||
"file-loader": "^1.1.11",
|
||||
"glob": "^7.2.0",
|
||||
"html-loader": "^0.5.5",
|
||||
"html-webpack-plugin": "^5.3.2",
|
||||
|
@ -61,7 +60,6 @@
|
|||
"stylelint": "^13.13.1",
|
||||
"ts-loader": "^8.3.0",
|
||||
"typescript": "^4.4.3",
|
||||
"url-loader": "^1.1.2",
|
||||
"webpack": "^5.58.0",
|
||||
"webpack-cli": "^4.9.0",
|
||||
"webpack-dev-server": "^4.3.1"
|
||||
|
|
|
@ -35,21 +35,15 @@ module.exports = {
|
|||
},
|
||||
{
|
||||
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
||||
use: {
|
||||
loader: 'file-loader'
|
||||
}
|
||||
type: 'asset/resource'
|
||||
},
|
||||
{
|
||||
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
||||
use: {
|
||||
loader: 'url-loader?limit=10000&mimetype=application/font-woff'
|
||||
}
|
||||
type: 'asset'
|
||||
},
|
||||
{
|
||||
test: /\.(png|jpg|gif)$/,
|
||||
use: {
|
||||
loader: 'url-loader?limit=8192'
|
||||
}
|
||||
type: 'asset'
|
||||
},
|
||||
{
|
||||
test: /\.html$/,
|
||||
|
|
Loading…
Reference in New Issue